aarch64: Fix --no-apply-dynamic-relocs for RELR

The option only makes sense for RELA relative relocs where the
addend is present, not for RELR relative relocs.

Fixes bug 31924.
This commit is contained in:
Szabolcs Nagy 2024-06-28 17:51:24 +01:00
parent 323b56a7ab
commit d21176c014

View 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);