[PATCH] D58102: Support X86 Control-flow Enforcement Technology (CET) in LLD

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 13 23:18:11 PST 2019


xiangzhangllvm added a comment.

Hi ruiu:
The main logic in this patch is that: the top function is LinkerDriver::mergeAggregateMetadata(), it check if all the relocatable object files contain the GNU_PROPERTY_X86_FEATURE_1_AND property in this section.
All the GNU_PROPERTY_X86_FEATURE_1_AND property flags will be bit-and(&) at function readGNUPropertyX86Feature1AND. Then all property information will be collected in Config->X86Feature1AND.
The Config->X86Feature1AND will tell what contexts the result output .note.gnu.property section should be set.
The data struct of .note.gnu.property is written in https://github.com/hjl-tools/linux-abi/wiki/linux-abi-draft.pdf.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58102/new/

https://reviews.llvm.org/D58102





More information about the llvm-commits mailing list