[PATCH] D119381: [MTE] Add NT_ANDROID_TYPE_MEMTAG

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 15:26:43 PST 2022


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

This ELF note is aarch64 and Android-specific. It specifies to the
dynamic loader that specific work should be scheduled to enable MTE
protection of stack and heap regions.

Current synthesis of the ".note.android.memtag" ELF note is done in the
Android build system. We'd like to move that to the compiler, and this
is the first step.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119381

Files:
  llvm/include/llvm/BinaryFormat/ELF.h
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag/aarch64-note-memtag-all-async.test
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag/aarch64-note-memtag-all-sync.test
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag/aarch64-note-memtag-heap-async.test
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag/aarch64-note-memtag-heap-sync.test
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag/aarch64-note-memtag-stack-async.test
  llvm/test/tools/llvm-readobj/ELF/AArch64/memtag/aarch64-note-memtag-stack-sync.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119381.407321.patch
Type: text/x-patch
Size: 14297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/271b385f/attachment.bin>


More information about the llvm-commits mailing list