[PATCH V4 0/8] Add support for MTE stack tagging
Jose E. Marchesi
jose.marchesi@oracle.com
Wed Jul 9 21:44:48 GMT 2025
Hello people.
Thank you for your review on the V3 series of this series [1]. Indu
got busy with other stuff, so I am getting over this series with the
goal of hopefully having it applied before the freeze.
This V4 should address both Jan's and Richard's comments.
The style/formatting issues have been fixed as suggested.
The handling of architecture/machine specific augmentations have been
addressed following the strategy suggested by Richard, which is
implemented in three additional little patches.
[1] https://sourceware.org/pipermail/binutils/2025-June/141589.html
Indu Bhagat (5):
binutils: make read_cie aware of new augmentation char 'G'
gas: aarch64: suppport CFI directive .cfi_mte_tagged_frame
ld: aarch64: make EH Frame parsing aware of augmentation char 'G'
ld/aarch64elf: add support for DT_AARCH64_MEMTAG_MODE dynamic tag
ld/aarch64elf: add support for DT_AARCH64_MEMTAG_STACK dynamic tag
Jose E. Marchesi (3):
binutils: generalize init_dwarf_regnames_by_* functions
binutils: factorize handling of arch-specific DWARF augmentations
bfd: fix recognition of arch-specific augmentations
bfd/elf-eh-frame.c | 4 ++
bfd/elfnn-aarch64.c | 20 +++++++-
bfd/elfxx-aarch64.h | 29 ++++++++++-
binutils/dwarf.c | 28 +++++++++--
binutils/dwarf.h | 6 +--
binutils/objdump.c | 4 +-
binutils/readelf.c | 9 ++--
gas/config/tc-aarch64.c | 9 ++++
gas/config/tc-aarch64.h | 23 ++++++---
gas/doc/c-aarch64.texi | 8 ++++
gas/testsuite/gas/aarch64/mte_tagged_stack.d | 47 ++++++++++++++++++
gas/testsuite/gas/aarch64/mte_tagged_stack.s | 24 ++++++++++
include/elf/aarch64.h | 2 +
ld/emultempl/aarch64elf.em | 48 ++++++++++++++++++-
ld/ld.texi | 14 ++++++
ld/testsuite/ld-aarch64/aarch64-elf.exp | 4 ++
ld/testsuite/ld-aarch64/dt-memtag-mode.d | 7 +++
ld/testsuite/ld-aarch64/dt-memtag-stack.d | 7 +++
ld/testsuite/ld-aarch64/dt-memtag.s | 7 +++
.../ld-aarch64/mte-tagged-frame-bar.s | 17 +++++++
.../ld-aarch64/mte-tagged-frame-foo.s | 16 +++++++
ld/testsuite/ld-aarch64/mte-tagged-frame.d | 35 ++++++++++++++
22 files changed, 344 insertions(+), 24 deletions(-)
create mode 100644 gas/testsuite/gas/aarch64/mte_tagged_stack.d
create mode 100644 gas/testsuite/gas/aarch64/mte_tagged_stack.s
create mode 100644 ld/testsuite/ld-aarch64/dt-memtag-mode.d
create mode 100644 ld/testsuite/ld-aarch64/dt-memtag-stack.d
create mode 100644 ld/testsuite/ld-aarch64/dt-memtag.s
create mode 100644 ld/testsuite/ld-aarch64/mte-tagged-frame-bar.s
create mode 100644 ld/testsuite/ld-aarch64/mte-tagged-frame-foo.s
create mode 100644 ld/testsuite/ld-aarch64/mte-tagged-frame.d
--
2.30.2
More information about the Binutils
mailing list