[lld] r295941 - Add a comment about .note.GNU-split-stack.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 23:35:12 PST 2017
Author: ruiu
Date: Thu Feb 23 01:35:11 2017
New Revision: 295941
URL: http://llvm.org/viewvc/llvm-project?rev=295941&view=rev
Log:
Add a comment about .note.GNU-split-stack.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=295941&r1=295940&r2=295941&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Thu Feb 23 01:35:11 2017
@@ -430,6 +430,10 @@ elf::ObjectFile<ELFT>::createInputSectio
if (Name == ".note.GNU-stack")
return &InputSection<ELFT>::Discarded;
+ // Split stacks is a feature to support a discontiguous stack. At least
+ // as of 2017, it seems that the feature is not being used widely.
+ // Only GNU gold supports that. We don't. For the details about that,
+ // see https://gcc.gnu.org/wiki/SplitStacks
if (Name == ".note.GNU-split-stack") {
error("objects using splitstacks are not supported");
return &InputSection<ELFT>::Discarded;
More information about the llvm-commits
mailing list