diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-12-10 09:07:30 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-12-10 09:07:30 +0000 |
commit | 4af28e46ca8db0a0abc76a613871972597e48e5c (patch) | |
tree | 84a7a5b9d4b6f5d8f4cebb894f5d0dd4303e601b /lld/ELF/LinkerScript.cpp | |
parent | 50bd2ec19818fd41feb310467b660a4e52db6dd6 (diff) | |
download | bcm5719-llvm-4af28e46ca8db0a0abc76a613871972597e48e5c.tar.gz bcm5719-llvm-4af28e46ca8db0a0abc76a613871972597e48e5c.zip |
[LLD][ELF] - Support discarding .dynstr section.
This is a part of https://bugs.llvm.org/show_bug.cgi?id=39810.
The patch allows discarding the .dynstr section using linker script.
Differential revision: https://reviews.llvm.org/D55215
llvm-svn: 348746
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 66ce07a2119..dad43d5b537 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -416,7 +416,7 @@ LinkerScript::computeInputSections(const InputSectionDescription *Cmd) { void LinkerScript::discard(ArrayRef<InputSection *> V) { for (InputSection *S : V) { if (S == In.ShStrTab || S == In.Dynamic || S == In.DynSymTab || - S == In.DynStrTab || S == In.RelaDyn || S == In.RelrDyn) + S == In.RelaDyn || S == In.RelrDyn) error("discarding " + S->Name + " section is not allowed"); // You can discard .hash and .gnu.hash sections by linker scripts. Since |