Re: Disable execstack and rwx segments warnings for MIPS targets.
[binutils-gdb.git] / ld / testsuite / ld-mips-elf / pr21375-n64.s
1 .abicalls
2 .set noreorder
3
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
15
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 ld $2, %got_page(obj + 4)($4)
26 ld $3, %got_disp(obj)($4)
27 daddiu $2, %got_ofst(obj + 4)
28 jr $31
29 daddiu $3, 4
30 .end foo
31
32 # Pad a little so that the microMIPS version aligns the same.
33 .space 4
34
35 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
36 .align 4, 0
37 .space 16
38
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 ldl $2, %got_page(obj + 4)($4)
48 ldr $3, %got_disp(obj)($4)
49 daddiu $2, %got_ofst(obj + 4)
50 jr $31
51 daddiu $3, 4
52 .end bar
53
54 # Pad a little so that the microMIPS version aligns the same.
55 .space 4
56
57 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
58 .align 4, 0
59 .space 16