[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / weak-undef-hidden.s
blob2baad5738c36f1ebf9b15f4fc5cc276651141e44
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: ld.lld %t.o -o %t.so -shared
4 // RUN: llvm-readobj -r -S --section-data %t.so | FileCheck %s
5 // RUN: ld.lld %t.o -o %t -pie
6 // RUN: llvm-readobj -r -S --section-data %t | FileCheck %s
8 /// This is usually guarded with a comparison. Don't report an error.
9 call g
11 .data
12 .weak g
13 .hidden g
14 .quad g
16 // CHECK: Name: .data
17 // CHECK-NEXT: Type: SHT_PROGBITS
18 // CHECK-NEXT: Flags [
19 // CHECK-NEXT: SHF_ALLOC
20 // CHECK-NEXT: SHF_WRITE
21 // CHECK-NEXT: ]
22 // CHECK-NEXT: Address:
23 // CHECK-NEXT: Offset:
24 // CHECK-NEXT: Size: 8
25 // CHECK-NEXT: Link: 0
26 // CHECK-NEXT: Info: 0
27 // CHECK-NEXT: AddressAlignment: 1
28 // CHECK-NEXT: EntrySize: 0
29 // CHECK-NEXT: SectionData (
30 // CHECK-NEXT: 0000: 00000000 00000000
31 // CHECK-NEXT: )
33 // CHECK: Relocations [
34 // CHECK-NEXT: ]