]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add new relocations to GAS
authorMatthew Malcomson <matthew.malcomson@arm.com>
Fri, 5 Aug 2022 16:19:32 +0000 (17:19 +0100)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 23:29:29 +0000 (16:29 -0700)
commit319d73f26a062c5032a888ce6ab1f75af46307e6
treeb42edba3931f1601d510956adccf1a59eee2c7fc
parent379107f3ec2f3f49f0cc17c308e39d63378e14ef
Add new relocations to GAS

Also add the ability to disassemble these relocations correctly.

Include checking that many different sizes work with different
instructions, include error checking that the `size` relocation is not
allowed in a64 mode.  Ensure that the size relocation is not allowed on
instructions other than mov[kz].

See the arm ABI aaelf64-morello document for the definition of these
new relocations.

Regenerate bfd/bfd-in2.h and bfd/libbfd.h from bfd/reloc.c.
bfd/bfd-in2.h
bfd/libbfd.h
bfd/reloc.c
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/illegal-reloc-size.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-reloc-size.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/reloc-size-a64.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/reloc-size.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/reloc-size.s [new file with mode: 0644]
include/elf/aarch64.h