]> granicus.if.org Git - llvm/commitdiff
Read .note.gnu.property sections and emit a merged .note.gnu.property section.
authorRui Ueyama <ruiu@google.com>
Wed, 5 Jun 2019 03:04:46 +0000 (03:04 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 5 Jun 2019 03:04:46 +0000 (03:04 +0000)
This patch also adds `--require-cet` option for the sake of testing.
The actual feature for IBT-aware PLT is not included in this patch.

This is a part of https://reviews.llvm.org/D59780. Submitting this
first should make it easy to work with a related change
(https://reviews.llvm.org/D62609).

Differential Revision: https://reviews.llvm.org/D62853

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362579 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELFTypes.h

index 45bbd6c4dea531c80d333668a54c5b23362557dc..5552208b1f8a76f4a69b805d23460eea19d8ff79 100644 (file)
@@ -592,9 +592,9 @@ class Elf_Note_Impl {
 
   template <class NoteIteratorELFT> friend class Elf_Note_Iterator_Impl;
 
+public:
   Elf_Note_Impl(const Elf_Nhdr_Impl<ELFT> &Nhdr) : Nhdr(Nhdr) {}
 
-public:
   /// Get the note's name, excluding the terminating null byte.
   StringRef getName() const {
     if (!Nhdr.n_namesz)