]> 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>
Mon, 25 Nov 2024 22:57:46 +0000 (14:57 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Fri, 11 Apr 2025 03:54:24 +0000 (20:54 -0700)
commit44a1eb8e101d4b41080a90a8a29ac3086b0a17dd
tree2939dd61ef4eec7dc4e39734ca2d1d6df2734de4
parent22373d691f73d84d7a0de08cffad30c923af053c
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]