| # Check number of got entries is adjusted for linker script-added space. |
| # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o |
| # RUN: echo "SECTIONS { .data : { *(.data.1); . += 0x10000; *(.data.2) } }" > %t.script |
| # RUN: ld.lld %t.o -shared -o %t.so -T %t.script |
| # RUN: llvm-readobj -mips-plt-got -dynamic-table %t.so | FileCheck %s |
| # CHECK: 0x7000000A MIPS_LOCAL_GOTNO 5 |
| # ^-- 2 * header + 3 local entries |
| # CHECK-NEXT: Access: -32744 |
| # CHECK-NEXT: Initial: 0x0 |
| # CHECK-NEXT: Access: -32740 |
| # CHECK-NEXT: Initial: 0x10000 |
| # CHECK-NEXT: Access: -32736 |
| # CHECK-NEXT: Initial: 0x20000 |
| .section .data.1,"aw",%progbits |
| .section .data.2,"aw",%progbits |