summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-09-09 03:35:14 +0000
committerFangrui Song <maskray@google.com>2019-09-09 03:35:14 +0000
commit88796a798856abecbebf9de666562bf6df41a303 (patch)
treef7ee936c116943568be67c217262406b40efae48 /lld/test/ELF/linkerscript
parent197901081bc52061d7827df6b1959b940b0704e5 (diff)
downloadbcm5719-llvm-88796a798856abecbebf9de666562bf6df41a303.tar.gz
bcm5719-llvm-88796a798856abecbebf9de666562bf6df41a303.zip
[ELF][test] Improve and reorganize another set of tests
Add file-level comments Replace trivial Input/*.s with echo ... | llvm-mc Delete insignificant addresses to make them more tolerant to layout changes Simplify test output Merge merge-section-types.s into compatible-section-types.s and add a missed case Merge gnu-ifunc-gotpcrel.s (added in D19517) into gnu-ifunc-dso.s (added in D35119) and add missed cases Delete typed-undef.s - covered by executable-undefined-ignoreall.s Delete emit-relocs-shared.s - covered by emit-relocs-merge.s Replace copy-rel-pie.s and copy-rel-pie2.s with canonical-plt-pcrel.s, canonical-plt-symbolic.s and copy-rel.s: add -no-pie cases. add a case that a canonical PLT can be created for STT_GNU_IFUNC. The logic in Symbols.h was untested: // ctor of SharedSymbol if (this->type == llvm::ELF::STT_GNU_IFUNC) this->type = llvm::ELF::STT_FUNC; llvm-svn: 371361
Diffstat (limited to 'lld/test/ELF/linkerscript')
-rw-r--r--lld/test/ELF/linkerscript/symbol-reserved.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript/symbol-reserved.s b/lld/test/ELF/linkerscript/symbol-reserved.s
index 8ae9d0cd661..a4c88daeb80 100644
--- a/lld/test/ELF/linkerscript/symbol-reserved.s
+++ b/lld/test/ELF/linkerscript/symbol-reserved.s
@@ -1,4 +1,7 @@
# REQUIRES: x86
+
+## Test linker synthesized symbols (e.g. __ehdr_start, _end) can be used in linker scripts.
+
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: echo "PROVIDE_HIDDEN(newsym = __ehdr_start + 5);" > %t.script
# RUN: ld.lld -o %t1 %t.script %t
OpenPOWER on IntegriCloud