https://sourceware.org/bugzilla/show_bug.cgi?id=31924
--- Comment #12 from Ard Biesheuvel <ardb at kernel dot org> --- Actually, I changed my mind. --no-apply-dynamic-relocs counters an optimization that removes the need to process RELA entries of type R_AARCH64_RELATIVE by copying the addend into the executable. RELR relocations fundamentally rely on the addend being present in the executable, as it is not stored anywhere else. This means --no-apply-dynamic-relocs must only apply to RELA relocations, and should be ignored for RELR relocations, as the resulting binary will always be broken otherwise. IOW, copying the addend into the executable is optional for RELA (and has little value unless the relocation type is R_AARCH64_RELATIVE), but it is required for RELR so disabling it can never make sense. So this should be fixed in ld.bfd. -- You are receiving this mail because: You are on the CC list for the bug.