summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-11-25 13:24:18 -0800
committerFangrui Song <maskray@google.com>2019-11-25 21:49:46 -0800
commita71c1e2a576a6b0f85cab2bef12446b0e3967853 (patch)
tree2ee94f8c609acda9ec5b12b29037a7423433ab55 /lld/ELF/LinkerScript.cpp
parent92f1446b8b8a1031d1676df5f90d5b5ca69e425b (diff)
downloadbcm5719-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.cpp2
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
OpenPOWER on IntegriCloud