[RFC,V2 0/5] Add support for MTE stack tagging

Indu Bhagat indu.bhagat@oracle.com
Fri Apr 11 04:16:28 GMT 2025


Hello,

Not much has moved from the version of the patches first posted earlier
in December 2024 (link
https://inbox.sourceware.org/binutils/20241205225837.2912674-1-indu.bhagat@oracle.com/).
So this is mostly a rebased version of V1 with some nits fixed.

The commit log of each commit has some of unresolved questions listed.
Most of the questions are around the implementation of the two dynamic
tags (related to MTE stack tagging).  The patchset addresses
three different aspects (i.e., .cfi_mte_tagged_frame CFI directive,
DT_AARCH64_MEMTAG_MODE and DT_AARCH64_MEMTAG_STACK) related to MTE stack
tagging.

Thanks,

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

 bfd/elf-eh-frame.c                            |  2 +
 bfd/elfnn-aarch64.c                           | 21 ++++++++-
 bfd/elfxx-aarch64.h                           | 27 ++++++++++-
 binutils/dwarf.c                              |  2 +
 binutils/readelf.c                            |  3 ++
 gas/config/tc-aarch64.c                       |  9 ++++
 gas/config/tc-aarch64.h                       | 17 +++++--
 gas/doc/c-aarch64.texi                        | 10 ++++
 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                    | 47 ++++++++++++++++++-
 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    | 29 ++++++++++++
 20 files changed, 303 insertions(+), 9 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.43.0



More information about the Binutils mailing list