]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: aarch64: make EH Frame parsing aware of augmentation char 'G'
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 12 Jul 2025 09:08:06 +0000 (11:08 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Sat, 12 Jul 2025 09:33:25 +0000 (11:33 +0200)
commit427363b461dc40e4e03bef27d2d52623b800f312
tree9c24e731608bf8b5f2702628e2965bc7f93113e7
parent4c043ef6f3dc21dde095da4598b5b684d8f53b2e
ld: aarch64: make EH Frame parsing aware of augmentation char 'G'

As per the DWARF for the Arm 64-bit Architecture (AArch64)
specification, the augmentation char 'G' indicates that associated
frames may modify MTE tags on the stack space they use.

Add knowledge of the 'G' augmentation char to the EH Frame parsing
code.

ChangeLog:

        * bfd/elf-eh-frame.c (_bfd_elf_parse_eh_frame): Accommodate
augmentation char 'G'.
        * ld/testsuite/ld-aarch64/aarch64-elf.exp: New test.
        * ld/testsuite/ld-aarch64/mte-tagged-frame-bar.s: New test.
        * ld/testsuite/ld-aarch64/mte-tagged-frame-foo.s: New test.
        * ld/testsuite/ld-aarch64/mte-tagged-frame.d: New test.
bfd/elf-eh-frame.c
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/mte-tagged-frame-bar.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/mte-tagged-frame-foo.s [new file with mode: 0644]
ld/testsuite/ld-aarch64/mte-tagged-frame.d [new file with mode: 0644]