]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: Fix --no-apply-dynamic-relocs for RELR
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Jun 2024 16:51:24 +0000 (17:51 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 15 Jul 2024 12:42:22 +0000 (13:42 +0100)
The option only makes sense for RELA relative relocs where the
addend is present, not for RELR relative relocs.

Fixes bug 31924.

bfd/elfnn-aarch64.c

index 000564672df22de18f8a78a64f81f1548272c4e7..94c9a01069b4384cf15e8512783dff4378ecd283 100644 (file)
@@ -5990,8 +5990,6 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
            {
              /* Don't emit a relative relocation that is packed, only
                 apply the addend.  */
-             if (globals->no_apply_dynamic_relocs)
-               return bfd_reloc_ok;
              return _bfd_final_link_relocate (howto, input_bfd, input_section,
                                               contents, rel->r_offset, value,
                                               signed_addend);