diff options
author | Rui Ueyama <ruiu@google.com> | 2017-02-23 07:15:46 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-02-23 07:15:46 +0000 |
commit | 65efe356320cf7bd77c71c3b442d27317c349d24 (patch) | |
tree | 7ff2b605572c57d630876e4d33f678075e151791 | |
parent | 0633273d05e31627b57e79121f4906374a4556ad (diff) | |
download | bcm5719-llvm-65efe356320cf7bd77c71c3b442d27317c349d24.tar.gz bcm5719-llvm-65efe356320cf7bd77c71c3b442d27317c349d24.zip |
Update comment: .note.GNU-stack is added by default today.
llvm-svn: 295939
-rw-r--r-- | lld/ELF/InputFiles.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 9706eb66c5a..efa04e507cf 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -418,11 +418,12 @@ elf::ObjectFile<ELFT>::createInputSection(const Elf_Shdr &Sec, // that the code in the object file does not expect that the stack is // executable (in terms of NX bit). If all input files have the marker, // the GNU linker adds a PT_GNU_STACK segment to tells the loader to - // make the stack non-executable. + // make the stack non-executable. Most object files have this section as + // of 2017. // // But making the stack non-executable is a norm today for security - // reasons (as of 2017). Failure to do so may result in a serious - // security issue. Therefore, LLD always adds PT_GNU_STACK unless it is + // reasons. Failure to do so may result in a serious security issue. + // Therefore, we make LLD always add PT_GNU_STACK unless it is // explicitly told to do otherwise (by -z execstack). Because the stack // executable-ness is controlled solely by command line options, // .note.GNU-stack sections are simply ignored. |