blob: c419e00a7b2f0cf881cf81a2aa5a8eecc0ce0744 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|