1257097Srpaulo # Create a mergeable section full of a single value, 2257097Srpaulo # and page references relative to one entry called "data". 3257097Srpaulo # 4257097Srpaulo # The mergeable entries collapse to one, but the offsets 5257097Srpaulo # from "data" must still be retained, and need 3 page entries. 6257097Srpaulo # 7257097Srpaulo # Technically this isn't valid, because it creates out-of-section 8277457Sngie # page references. It's still a useful way of making sure that 9292282Sngie # offsets in mergeable sections are handled correctly. 10292282Sngie .globl foo 11277457Sngie .ent foo 12257097Srpaulofoo: 13277457Sngie .set y,0 14260024Sjmmv .rept 4 15290574Sngie lw $4,%got_page(data + y)($gp) 16290574Sngie addiu $4,$4,%got_ofst(data + y) 17277747Sngie .set y,y+0x8000 18277747Sngie .endr 19289965Sngie .end foo 20289965Sngie 21277457Sngie .section .rodata.cst4,"aM",@progbits,4 22260024Sjmmvdata: 23277457Sngie .rept 0x8000*4 24260024Sjmmv .word 123456 25277457Sngie .endr 26277457Sngie 27277457Sngie # Make sure the loadable size of the library is large. 28277457Sngie .section .bss 29262951Sjmmv .globl g 30277457Sngieg: 31262951Sjmmv .space 0x800000 32277457Sngie