[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / relocatable-sections.s
blob5d36d91b244f7afa546f1bded021d102442dc598
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: ld.lld -r %t1.o -o %t
4 # RUN: llvm-objdump --section-headers %t | FileCheck %s
6 # CHECK: .text
7 # CHECK-NEXT: .rela.text
8 # CHECK: .text._init
9 # CHECK-NEXT: .rela.text._init
10 # CHECK: .text._fini
11 # CHECK-NEXT: .rela.text._fini
13 .globl _start
14 _start:
15 call foo
16 nop
18 .section .xxx,"a"
19 .quad 0
21 .section .text._init,"ax"
22 .quad .xxx
23 foo:
24 call bar
25 nop
28 .section .text._fini,"ax"
29 .quad .xxx
30 bar:
31 nop