[PATCH] D47145: [X86][ELF][CET] Adding the .note.gnu.property ELF section in X86

Mikhail Dvoretckii via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 21 08:44:02 PDT 2018


mike.dvoretsky created this revision.
mike.dvoretsky added a reviewer: craig.topper.
Herald added subscribers: llvm-commits, hiraditya.

In preparation for the proposed linker ABI changes (https://github.com/hjl-tools/linux-abi/wiki/linux-abi-draft.pdf, https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-cet.pdf), this patch enables emission of the .note.gnu.property section to ELF object files when building CET-enabled modules. Also added code to llvm-readobj to parse GNU_PROPERTY_X86_FEATURE_1_AND notes.


Repository:
  rL LLVM

https://reviews.llvm.org/D47145

Files:
  llvm/include/llvm/BinaryFormat/ELF.h
  llvm/lib/Target/X86/X86AsmPrinter.cpp
  llvm/test/tools/llvm-readobj/note-gnu-property.s
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47145.147792.patch
Type: text/x-patch
Size: 7680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180521/59b7add5/attachment.bin>


More information about the llvm-commits mailing list