[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / copy-in-shared.s
blob2e383e394eecc5e79db5c314d28df6d886e0f879
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o
3 // RUN: ld.lld -shared %t1.o -o %t1.so
4 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
5 // RUN: not ld.lld %t2.o %t1.so -o /dev/null -shared 2>&1 | FileCheck %s
7 // CHECK: error: relocation R_X86_64_64 cannot be used against symbol 'foo'; recompile with -fPIC
8 // CHECK: >>> defined in {{.*}}.so
9 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)
11 .quad foo