[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / output-section.s
blobe47904a41d1c4e1a39ed6174ade713fdb6d2336b
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 // RUN: ld.lld %t -o %t2
4 // RUN: llvm-readobj --symbols %t2 | FileCheck %s
6 // CHECK: Name: foo_sym
7 // CHECK-NEXT: Value:
8 // CHECK-NEXT: Size:
9 // CHECK-NEXT: Binding:
10 // CHECK-NEXT: Type:
11 // CHECK-NEXT: Other:
12 // CHECK-NEXT: Section: foo
13 // CHECK-NEXT: }
14 // CHECK-NEXT: Symbol {
15 // CHECK-NEXT: Name: bar_sym
16 // CHECK-NEXT: Value:
17 // CHECK-NEXT: Size:
18 // CHECK-NEXT: Binding:
19 // CHECK-NEXT: Type:
20 // CHECK-NEXT: Other:
21 // CHECK-NEXT: Section: bar
22 // CHECK-NEXT: }
24 .section foo
25 .global foo_sym
26 foo_sym:
28 .section bar, "a"
29 .global bar_sym
30 bar_sym:
32 .global _start
33 _start: