summaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/arm-lscript.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/linkerscript/arm-lscript.s')
-rw-r--r--test/ELF/linkerscript/arm-lscript.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/arm-lscript.s b/test/ELF/linkerscript/arm-lscript.s
new file mode 100644
index 000000000000..c377764e9776
--- /dev/null
+++ b/test/ELF/linkerscript/arm-lscript.s
@@ -0,0 +1,9 @@
+// REQUIRES: arm
+// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
+// RUN: echo "SECTIONS { \
+// RUN: .rel.dyn : { } \
+// RUN: .zed : { PROVIDE_HIDDEN (foobar = .); } \
+// RUN: }" > %t.script
+// This is a test case for PR33029. Making sure that linker can digest
+// the above script without dumping core.
+// RUN: ld.lld -emit-relocs -T %t.script %t.o -shared -o %t.so