diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-02-23 07:35:11 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-02-23 07:35:11 +0000 |
| commit | c1a0ac2c4addfca9214feb5a577adffed483f521 (patch) | |
| tree | 877d4ff2bb2c494c106c67346938d44c807b8aab | |
| parent | 6e670cf44ffb7a2e8f91e12b29378d482545ad6e (diff) | |
| download | bcm5719-llvm-c1a0ac2c4addfca9214feb5a577adffed483f521.tar.gz bcm5719-llvm-c1a0ac2c4addfca9214feb5a577adffed483f521.zip | |
Add a comment about .note.GNU-split-stack.
llvm-svn: 295941
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index efa04e507cf..666f598bc5d 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -430,6 +430,10 @@ elf::ObjectFile<ELFT>::createInputSection(const Elf_Shdr &Sec, 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; |

