2 # Check the case when small section (less that 0x10000 bytes) occupies
3 # two adjacent 0xffff-bytes pages. We need to create two GOT entries
4 # for R_MIPS_GOT_PAGE relocations.
6 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux -o %t.o %s
7 # RUN: ld.lld --section-start .rodata=0x27FFC -shared -o %t.so %t.o
8 # RUN: llvm-readobj --symbols -A %t.so | FileCheck %s
11 # CHECK-NEXT: Value: 0x27FFC
12 # ^ page-address = (0x27ffc + 0x8000) & ~0xffff = 0x20000
15 # CHECK-NEXT: Value: 0x28000
16 # ^ page-address = (0x28000 + 0x8000) & ~0xffff = 0x30000
18 # CHECK: Local entries [
20 # CHECK-NEXT: Address:
21 # CHECK-NEXT: Access: -32736
22 # CHECK-NEXT: Initial: 0x20000
25 # CHECK-NEXT: Address:
26 # CHECK-NEXT: Access: -32728
27 # CHECK-NEXT: Initial: 0x30000
32 ld $v0
,%got_page
(foo
)($gp
)
33 ld $v0
,%got_page
(bar
)($gp
)