diff options
Diffstat (limited to 'test/ELF/symbol-ordering-file2.s')
-rw-r--r-- | test/ELF/symbol-ordering-file2.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/ELF/symbol-ordering-file2.s b/test/ELF/symbol-ordering-file2.s new file mode 100644 index 0000000000000..723eef1dfb72d --- /dev/null +++ b/test/ELF/symbol-ordering-file2.s @@ -0,0 +1,21 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: echo "bar" > %t.order +# RUN: ld.lld --symbol-ordering-file %t.order -shared %t.o -o %t.so +# RUN: llvm-nm %t.so | FileCheck %s + +# CHECK: 0000000000002000 d _DYNAMIC +# CHECK-NEXT: 0000000000001000 T bar +# CHECK-NEXT: 0000000000001004 T foo + + .section .text.foo,"ax",@progbits + .align 4 + .global foo +foo: + retq + + .section .text.bar,"ax",@progbits + .align 4 + .global bar +bar: + retq |