Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-mips-elf / pr21375-n32.s
blobe17fab64b7778465a1c8eae179aa94422d4e7707
1 .abicalls
2 .set noreorder
4 .type obj, @object
5 .weak obj
6 .ifdef prot
7 .protected obj
8 .endif
9 .ifdef hidn
10 .hidden obj
11 .endif
12 .ifdef intr
13 .internal obj
14 .endif
16 .section .text.foo, "ax", @progbits
17 .globl foo
18 .ent foo
19 foo:
20 .frame $sp, 0, $31
21 .mask 0x00000000, 0
22 .fmask 0x00000000, 0
23 .cplocal $4
24 .cpsetup $25, $0, foo
25 lw $2, %got_page(obj + 4)($4)
26 lw $3, %got_disp(obj)($4)
27 addiu $2, %got_ofst(obj + 4)
28 jr $31
29 addiu $3, 4
30 .end foo
32 # Pad a little so that the microMIPS version aligns the same.
33 .space 4
35 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
36 .align 4, 0
37 .space 16
39 .section .text.bar, "ax", @progbits
40 .ent bar
41 bar:
42 .frame $sp, 0, $31
43 .mask 0x00000000, 0
44 .fmask 0x00000000, 0
45 .cplocal $4
46 .cpsetup $25, $0, bar
47 lwl $2, %got_page(obj + 4)($4)
48 lwr $3, %got_disp(obj)($4)
49 addiu $2, %got_ofst(obj + 4)
50 jr $31
51 addiu $3, 4
52 .end bar
54 # Pad a little so that the microMIPS version aligns the same.
55 .space 4
57 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
58 .align 4, 0
59 .space 16