[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / mips-abs-got.s
blob67ae27c5da71ec479a8f3f77607a884cf5213d93
1 # REQUIRES: mips
3 # Check GOT relocations against absolute symbols.
5 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux -o %t.o %s
6 # RUN: echo "SECTIONS { \
7 # RUN: zero1 = 0; zero2 = 0; foo = 0x11004; bar = 0x22000; }" > %t.script
8 # RUN: ld.lld --script %t.script -o %t.exe %t.o
9 # RUN: llvm-readobj -A %t.exe | FileCheck %s
11 # CHECK: Static GOT {
12 # CHECK: Local entries [
13 # CHECK-NEXT: Entry {
14 # CHECK-NEXT: Address:
15 # CHECK-NEXT: Access: -32736
16 # CHECK-NEXT: Initial: 0x0
17 # CHECK-NEXT: }
18 # CHECK-NEXT: Entry {
19 # CHECK-NEXT: Address:
20 # CHECK-NEXT: Access: -32728
21 # CHECK-NEXT: Initial: 0x10000
22 # CHECK-NEXT: }
23 # CHECK-NEXT: Entry {
24 # CHECK-NEXT: Address:
25 # CHECK-NEXT: Access: -32720
26 # CHECK-NEXT: Initial: 0x30000
27 # CHECK-NEXT: }
28 # CHECK-NEXT: ]
29 # CHECK-NEXT: }
31 .text
32 nop
33 ld $v0, %got_page(zero1)($gp)
34 ld $v0, %got_page(zero2)($gp)
35 ld $v0, %got_page(foo)($gp)
36 ld $v0, %got_page(bar+0x10008)($gp)