From: Rui Ueyama <ruiu@google.com> Date: Wed, 5 Jun 2019 03:04:46 +0000 (+0000) Subject: Read .note.gnu.property sections and emit a merged .note.gnu.property section. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acdf56aebb8e211c23b883afb3420cf2f1cd903b;p=llvm Read .note.gnu.property sections and emit a merged .note.gnu.property section. 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 --- diff --git a/include/llvm/Object/ELFTypes.h b/include/llvm/Object/ELFTypes.h index 45bbd6c4dea..5552208b1f8 100644 --- a/include/llvm/Object/ELFTypes.h +++ b/include/llvm/Object/ELFTypes.h @@ -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)