[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / local-got-shared.s
blob083790562d55f8f7132725caa4fbc15d3ae20a43
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 // RUN: ld.lld %t.o -o %t -shared
4 // RUN: llvm-readobj -S -d -r %t | FileCheck %s
5 // RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=DISASM %s
7 bar:
8 call foo@gotpcrel
10 .hidden foo
11 .global foo
12 foo:
13 nop
15 // 0x22E0 - 0x1228 - 5 = 4275
16 // DISASM: <bar>:
17 // DISASM-NEXT: 1228: callq 0x22e0
19 // DISASM: <foo>:
20 // DISASM-NEXT: 122d: nop
22 // CHECK: Name: .got
23 // CHECK-NEXT: Type: SHT_PROGBITS
24 // CHECK-NEXT: Flags [
25 // CHECK-NEXT: SHF_ALLOC
26 // CHECK-NEXT: SHF_WRITE
27 // CHECK-NEXT: ]
28 // CHECK-NEXT: Address: 0x22E0
29 // CHECK-NEXT: Offset:
30 // CHECK-NEXT: Size: 8
32 // CHECK: 0x000000006FFFFFF9 RELACOUNT 1
34 // CHECK: Relocations [
35 // CHECK-NEXT: Section ({{.*}}) .rela.dyn {
36 // CHECK-NEXT: 0x22E0 R_X86_64_RELATIVE - 0x122D
37 // CHECK-NEXT: }
38 // CHECK-NEXT: ]