Arm64/ELF: accept relocations against STN_UNDEF
authorJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2023 06:15:53 +0000 (08:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2023 06:15:53 +0000 (08:15 +0200)
commitaf9eb2ee1b10caa89e1c603cd484bc025e71f4fd
tree349ebfb424e5fed5e9b468107264ce419ec08213
parent56ce0c730b5dcb1e365e9cb42394f42a9a4154a3
Arm64/ELF: accept relocations against STN_UNDEF

While only a secondary issue there, the testcase of PR gas/27212 exposes
an oversight in relocation handling: Just like e.g. Arm32, which has a
similar comment and a similar check, relocations against STN_UNDEF have
to be permitted to satisfy the ELF spec.
bfd/elfnn-aarch64.c