diff options
Diffstat (limited to 'test/ELF/linkerscript/sections-constraint3.s')
-rw-r--r-- | test/ELF/linkerscript/sections-constraint3.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/sections-constraint3.s b/test/ELF/linkerscript/sections-constraint3.s new file mode 100644 index 000000000000..259f11e91dd1 --- /dev/null +++ b/test/ELF/linkerscript/sections-constraint3.s @@ -0,0 +1,11 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: echo "SECTIONS { zed : ONLY_IF_RO { abc = 1; *(foo) } }" > %t.script +# RUN: ld.lld -T %t.script %t.o -o %t.so -shared +# RUN: llvm-readobj -t %t.so | FileCheck %s + +# CHECK: Symbols [ +# CHECK-NOT: abc + +.section foo,"aw" +.quad 1 |