diff options
author | Fangrui Song <maskray@google.com> | 2019-11-25 13:24:18 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-11-25 21:49:46 -0800 |
commit | a71c1e2a576a6b0f85cab2bef12446b0e3967853 (patch) | |
tree | 2ee94f8c609acda9ec5b12b29037a7423433ab55 /lld/ELF/LinkerScript.cpp | |
parent | 92f1446b8b8a1031d1676df5f90d5b5ca69e425b (diff) | |
download | bcm5719-llvm-a71c1e2a576a6b0f85cab2bef12446b0e3967853.tar.gz bcm5719-llvm-a71c1e2a576a6b0f85cab2bef12446b0e3967853.zip |
[ELF] Support input section description .rel[a].dyn in /DISCARD/
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D70695
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 cebbd89168b..a1561d2d415 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -442,7 +442,7 @@ LinkerScript::computeInputSections(const InputSectionDescription *cmd) { } void LinkerScript::discard(InputSectionBase *s) { - if (s == in.shStrTab || s == mainPart->relaDyn || s == mainPart->relrDyn) + if (s == in.shStrTab || s == mainPart->relrDyn) error("discarding " + s->name + " section is not allowed"); // You can discard .hash and .gnu.hash sections by linker scripts. Since |