2 # Check calculation of MIPS GOT page address entries number
3 # when a linker script is provided.
5 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux -o %t.o %s
6 # RUN: echo "SECTIONS { \
7 # RUN: .text : { *(.text) } \
8 # RUN: .data 0x10000 : { *(.data) } }" > %t.script
9 # RUN: ld.lld -shared --script %t.script -o %t.so %t.o
10 # RUN: llvm-readobj --symbols -A %t.so | FileCheck %s
13 # CHECK-NEXT: Value: 0x10000
15 # CHECK-NEXT: Value: 0x20000
17 # CHECK-NEXT: Value: 0x30000
19 # CHECK-NEXT: Value: 0x40000
21 # CHECK: Local entries [
23 # CHECK-NEXT: Address:
25 # CHECK-NEXT: Initial: 0x10000
28 # CHECK-NEXT: Address:
30 # CHECK-NEXT: Initial: 0x20000
33 # CHECK-NEXT: Address:
35 # CHECK-NEXT: Initial: 0x30000
38 # CHECK-NEXT: Address:
40 # CHECK-NEXT: Initial: 0x40000
43 # CHECK-NEXT: Address:
45 # CHECK-NEXT: Initial: 0x50000
51 ld $v0
,%got_page
(foo1
)($gp
)
52 ld $v0
,%got_page
(foo2
)($gp
)
53 ld $v0
,%got_page
(foo3
)($gp
)
54 ld $v0
,%got_page
(foo4
)($gp
)