summaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/arm-lscript.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-29 16:26:20 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-29 16:26:20 +0000
commitbef2946c219dc621608bcc9e47f8b973e5ef5c70 (patch)
tree1e4dfae199fc27167ed7496693938fec2dab65c2 /test/ELF/linkerscript/arm-lscript.s
parentc53addf38e24e4dafe992aafb3ae928bfa8fdb0a (diff)
Notes
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