[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / x86-64-reloc-gotpc64.s
blob10be29fe58f3cf866207dd59482fa5eeb287e5f2
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: ld.lld %t.o -shared -o %t.so
4 // RUN: llvm-readelf -S %t.so | FileCheck %s -check-prefix=SECTION
5 // RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck %s
7 // SECTION: .got.plt PROGBITS 00000000000032f0 0002f0 000018
9 // 0x3300 (.got.plt) - 0x1274 = 8316
10 // CHECK: <gotpc64>:
11 // CHECK-NEXT: 1274: {{.*}} movabsq $8316, %r11
12 .global gotpc64
13 gotpc64:
14 movabsq $_GLOBAL_OFFSET_TABLE_-., %r11