aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/got-page-6.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/got-page-6.s')
-rw-r--r--ld/testsuite/ld-mips-elf/got-page-6.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/got-page-6.s b/ld/testsuite/ld-mips-elf/got-page-6.s
new file mode 100644
index 0000000..c419e00
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/got-page-6.s
@@ -0,0 +1,27 @@
+ # Create a mergeable section full of a single value.
+ # Create page references relative to instances of the value
+ # that are large distances apart.
+ #
+ # The mergeable entries collapse to one, so even with the
+ # large distances in the original file, we should end
+ # up with a single page entry.
+ .globl foo
+ .ent foo
+foo:
+ .rept 4
+ lw $4,%got_page(1f)($gp)
+ addiu $4,$4,%got_ofst(1f)
+ .section .rodata.cst4,"aM",@progbits,4
+1:
+ .rept 0x8000
+ .word 123456
+ .endr
+ .text
+ .endr
+ .end foo
+
+ # Make sure the loadable size of the library is large.
+ .section .bss
+ .globl g
+g:
+ .space 0x800000