[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / dso_handle.s
blob9d212c352f53b61439bb6c3eeac8a00dc05db0dd
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: ld.lld -shared %t.o -o %t
5 # RUN: llvm-readobj --symbols %t | FileCheck %s
6 # CHECK: Name: __dso_handle
7 # CHECK-NEXT: Value: 0x0
8 # CHECK-NEXT: Size: 0
9 # CHECK-NEXT: Binding: Local
10 # CHECK-NEXT: Type: None
11 # CHECK-NEXT: Other [
12 # CHECK-NEXT: STV_HIDDEN
13 # CHECK-NEXT: ]
14 # CHECK-NEXT: Section: .dynsym
16 .text
17 .global foo, __dso_handle
18 foo:
19 lea __dso_handle(%rip),%rax