[PATCH] D145761: [MTE] [llvm-readobj] Add globals section parsing to --memtag

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 20:21:45 PST 2023


hctim created this revision.
hctim added reviewers: pcc, MaskRay.
Herald added subscribers: hiraditya, kristof.beyls, emaste.
Herald added a reviewer: jhenderson.
Herald added a project: All.
hctim requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Global variables are described in a metadata table called
SHT_AARCH64_MEMTAG_GLOBALS_DYNAMIC. It's basically a ULEB-encoded skip
list with some other fancy encoding tricks to make it smaller. You can
see the ABI at
https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst#83encoding-of-sht_aarch64_memtag_globals_dynamic

This extends readelf/readobj to understand these sections.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145761

Files:
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145761.504015.patch
Type: text/x-patch
Size: 14121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230310/01ceb15c/attachment-0001.bin>


More information about the llvm-commits mailing list