summaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/no-pt-load.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/linkerscript/no-pt-load.s')
-rw-r--r--test/ELF/linkerscript/no-pt-load.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/no-pt-load.s b/test/ELF/linkerscript/no-pt-load.s
new file mode 100644
index 0000000000000..c70402501391d
--- /dev/null
+++ b/test/ELF/linkerscript/no-pt-load.s
@@ -0,0 +1,5 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: echo "PHDRS {foo PT_DYNAMIC ;} " \
+# RUN: "SECTIONS { .text : { *(.text) } : foo }" > %t.script
+# RUN: ld.lld -o %t1 --script %t.script %t.o