[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / mips-gprel32-relocs.s
blob82c361d1f0103e149c2aebb442561d1c660e7e90
1 # REQUIRES: mips
2 # Check R_MIPS_GPREL32 relocation calculation.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5 # RUN: echo "SECTIONS { \
6 # RUN: .rodata ALIGN(0x1000) : { *(.rodata) } \
7 # RUN: . = 0x20000; .text : { *(.text) } \
8 # RUN: }" > %t.script
9 # RUN: ld.lld -shared --script %t.script -o %t.so %t.o
10 # RUN: llvm-objdump -s --section=.rodata -t %t.so | FileCheck %s
12 .text
13 .globl __start
14 __start:
15 lw $t0,%call16(__start)($gp)
16 foo:
17 nop
18 bar:
19 nop
21 .section .rodata, "a"
22 v1:
23 .gpword foo
24 .gpword bar
26 # CHECK: SYMBOL TABLE:
27 # CHECK: 00020004 l .text 00000000 foo
28 # CHECK: 00020008 l .text 00000000 bar
29 # CHECK: 00028000 l .got 00000000 .hidden _gp
31 # CHECK: Contents of section .rodata:
32 # CHECK: 1000 ffff8004 ffff8008
33 # ^ 0x20004 - 0x28000
34 # ^ 0x20008 - 0x28000