binutils-gdb/ld/testsuite/ld-mips-elf/pr21375-n64.s

60 lines
1.0 KiB
ArmAsm

.abicalls
.set noreorder
.type obj, @object
.weak obj
.ifdef prot
.protected obj
.endif
.ifdef hidn
.hidden obj
.endif
.ifdef intr
.internal obj
.endif
.section .text.foo, "ax", @progbits
.globl foo
.ent foo
foo:
.frame $sp, 0, $31
.mask 0x00000000, 0
.fmask 0x00000000, 0
.cplocal $4
.cpsetup $25, $0, foo
ld $2, %got_page(obj + 4)($4)
ld $3, %got_disp(obj)($4)
daddiu $2, %got_ofst(obj + 4)
jr $31
daddiu $3, 4
.end foo
# Pad a little so that the microMIPS version aligns the same.
.space 4
# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
.align 4, 0
.space 16
.section .text.bar, "ax", @progbits
.ent bar
bar:
.frame $sp, 0, $31
.mask 0x00000000, 0
.fmask 0x00000000, 0
.cplocal $4
.cpsetup $25, $0, bar
ldl $2, %got_page(obj + 4)($4)
ldr $3, %got_disp(obj)($4)
daddiu $2, %got_ofst(obj + 4)
jr $31
daddiu $3, 4
.end bar
# Pad a little so that the microMIPS version aligns the same.
.space 4
# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
.align 4, 0
.space 16