Dne 23. 01. 26 v 15:23 Mark Wielaard napsal(a):
Hi,On Fri, Jan 23, 2026 at 06:46:02PM +0900, Mamoru TASAKA wrote:Jakub Jelinek wrote on 2026/01/23 17:00:On Fri, Jan 23, 2026 at 04:55:57PM +0900, Mamoru TASAKA wrote:Rather, looks like the fault of binutils-2.45.50-19.fc44.aarch64.Package fault, text relocations really should be avoided. See https://bugzilla.redhat.com/2428281But the above bugzilla says there is a message:/usr/bin/ld: warning: creating DT_TEXTREL in a shared objectThere is no such message on ruby build (even with binutils-2.45.50-19.fc44.aarch64) Also, successful previous ruby build (using binutils-2.45.50-9.fc44.aarch64) does *not* show the below/usr/bin/ld.bfd: jit.o: warning: relocation against `rb_jit_reserve_addr_space' in read-only section `.rodata'warning, but -19 shows the above warning.I think the warning/error is deliberate in newer binutils. The binutils fedora package changelog has: * Tue Jan 13 2026 Nick Clifton <[email protected]> - 2.45.50-15 - Disallow the creation of shared object that use text relocations. (#2428281) https://bugzilla.redhat.com/show_bug.cgi?id=2428281 Cheers, Mark
For curious readers, further details are here: https://bugzilla.redhat.com/show_bug.cgi?id=2431921 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123791 IOW this seems to be bug in GCC after all. Vít
Actually linkage (ld.bfd) is failing only on aarch64, with the message: /usr/bin/ld.bfd: jit.o: warning: relocation against `rb_jit_reserve_addr_space' in read-only section `.rodata' /usr/bin/ld.bfd: error: read-only segment has dynamic relocations (the above is when disabling lto) Downloading binutils-2.45.50-9.fc44.aarch64 makes the above successful (i.e. no error). Will try bisecting. And looking at jit.s, I don't understand why ld.bfd says rb_jit_reserve_addr_space is in .rodata.Jakub-- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
