[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / relocatable-reloc.s
blob7c699b9bf31483f45a0ff78ee257ab629b19224f
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple=x86_64-pc-linux
3 // RUN: ld.lld %t.o %t.o -r -o %t2.o
4 // RUN: llvm-readobj -r %t2.o | FileCheck %s
6 .weak foo
7 foo:
8 .quad foo
10 // CHECK: Relocations [
11 // CHECK-NEXT: Section ({{.*}}) .rela.text {
12 // CHECK-NEXT: 0x0 R_X86_64_64 foo 0x0
13 // CHECK-NEXT: 0x8 R_X86_64_64 foo 0x0
14 // CHECK-NEXT: }
15 // CHECK-NEXT: ]