diff options
Diffstat (limited to 'binutils-2.25/ld/testsuite/ld-mips-elf/undefweak-overflow.s')
-rw-r--r-- | binutils-2.25/ld/testsuite/ld-mips-elf/undefweak-overflow.s | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/binutils-2.25/ld/testsuite/ld-mips-elf/undefweak-overflow.s b/binutils-2.25/ld/testsuite/ld-mips-elf/undefweak-overflow.s new file mode 100644 index 0000000..525f11b --- /dev/null +++ b/binutils-2.25/ld/testsuite/ld-mips-elf/undefweak-overflow.s @@ -0,0 +1,25 @@ +# relocs against undefined weak symbols should not be treated as +# overflowing + + + .globl start + .weak foo +start: + .set mips64r6 + beqzc $2, foo + bnezc $2, foo + lwpc $2, foo + ldpc $2, foo + bc foo + lui $4, %pcrel_hi(foo) + addiu $4, $4, %pcrel_lo(foo) + + .set mips32r2 + b foo + bal foo + lui $4, %gp_rel(foo) + + .set micromips + beqz16 $4, foo + b16 foo + b foo |