Fix undefined weak symbol reloc tests

ld/testsuite/

	* ld-mips-elf/mips-elf.exp: Update undefweak-overflow tests.
	* ld-mips-elf/undefweak-overflow-n32.d: Remove.
	* ld-mips-elf/undefweak-overflow-n64.d: Likewise.
	* ld-mips-elf/undefweak-overflow.s: Set mips64r6, noreorder and
	add a label to mark the micromips region.
	* ld-mips-elf/undefweak-overflow.d: Update expected output.
This commit is contained in:
Matthew Fortune
2014-12-18 20:08:38 +00:00
parent bb7e3f4d51
commit 6e8ec71244
6 changed files with 55 additions and 78 deletions

View File

@@ -1,23 +1,27 @@
#name: undefined weak symbol overflow
#source: undefweak-overflow.s
#as: -32 -EB
#ld: -melf32btsmip -Ttext=0x20000000 -e start
#objdump: -dr
#ld: -Ttext=0x20000000 -e start
#objdump: -dr --show-raw-insn
#...
0*20000000: d85fffff.*
0*20000004: 00000000.*
0*20000008: f85ffffd.*
0*2000000c: ec4ffffd.*
0*20000010: ec5bfffe.*
0*20000014: cbfffffa.*
0*20000018: 3c04e000.*
0*2000001c: 1000fff8.*
0*20000020: 2484ffe0.*
0*20000024: 0411fff6.*
0*20000028: 00000000.*
0*2000002c: 3c047fd0.*
0*20000030: 8e670c00.*
0*20000034: cfe50c00.*
0*20000038: 9400ffe2.*
0*2000003c: 0c000c00.*
0*20000000 <_ftext>:
*20000000: d85fffff beqzc v0,20000000 <_ftext>
*20000004: 00000000 nop
*20000008: f85ffffd bnezc v0,20000000 <_ftext>
*2000000c: ec4ffffd lwpc v0,20000000 <_ftext>
*20000010: ec5bfffe ldpc v0,20000000 <_ftext>
*20000014: cbfffffa bc 20000000 <_ftext>
*20000018: ec9ee000 auipc a0,0xe000
*2000001c: 2484ffe8 addiu a0,a0,-24
*20000020: 1000fff7 b 20000000 <_ftext>
*20000024: 00000000 nop
*20000028: 0411fff5 bal 20000000 <_ftext>
*2000002c: 3c...... lui a0,0x....
0*20000030 <micro>:
*20000030: 8e67 beqz a0,20000000 <_ftext>
*20000032: 0c00 nop
*20000034: cfe5 b 20000000 <_ftext>
*20000036: 0c00 nop
*20000038: 9400 ffe2 b 20000000 <_ftext>
*2000003c: 0c00 nop
#pass