2 # Check number of got entries is adjusted for linker script-added space.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5 # RUN: echo "SECTIONS { .data : { *(.data.1); . += 0x10000; *(.data.2) } }" > %t.script
6 # RUN: ld.lld %t.o -shared -o %t.so -T %t.script
7 # RUN: llvm-readobj -A --dynamic-table %t.so | FileCheck %s
9 # CHECK: 0x7000000A MIPS_LOCAL_GOTNO 4
10 # ^-- 2 * header + 2 local entries
11 # CHECK: Local entries [
13 # CHECK-NEXT: Address:
14 # CHECK-NEXT: Access: -32744
15 # CHECK-NEXT: Initial: 0x0
19 # CHECK-NEXT: Address:
20 # CHECK-NEXT: Access: -32740
21 # CHECK-NEXT: Initial: 0x10000
29 lw $t0
, %got
(loc1
)($gp
)
30 addi $t0
, $t0
, %lo
(loc1
)
31 lw $t0
, %got
(loc2
)($gp
)
32 addi $t0
, $t0
, %lo
(loc2
)
34 .section .data.1,"aw",%progbits
38 .section .data.2,"aw",%progbits