MIPS/BFD: Move attribute check after ELF file header flag check
[deliverable/binutils-gdb.git] / ld / testsuite / ld-mips-elf / undefweak-overflow.s
CommitLineData
538baf8b
AB
1# relocs against undefined weak symbols should not be treated as
2# overflowing
3
6e8ec712 4 .module mips64r6
538baf8b
AB
5 .globl start
6 .weak foo
7start:
6e8ec712 8 .set noreorder
538baf8b
AB
9 .set mips64r6
10 beqzc $2, foo
6e8ec712 11 nop
538baf8b
AB
12 bnezc $2, foo
13 lwpc $2, foo
14 ldpc $2, foo
15 bc foo
6e8ec712
MF
16 auipc $4, %pcrel_hi(foo)
17 addiu $4, $4, %pcrel_lo(foo+4)
538baf8b 18
6e8ec712
MF
19 b foo
20 nop
21 bal foo
22 lui $4, %gp_rel(foo)
538baf8b 23
6e8ec712 24 .set mips32r2
538baf8b 25 .set micromips
6e8ec712
MF
26micro:
27 beqz16 $4, foo
28 nop
29 b16 foo
30 nop
31 b foo
32 nop
This page took 0.072593 seconds and 4 git commands to generate.