The n32 and n64 variants in ld-mips-elf/comm-data.exp fail assembly: Running /home/hp/binutils/src/ld/testsuite/ld-mips-elf/comm-data.exp ... ERROR: -n32 -EB -call_shared /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data1.s: assembly failed ERROR: -n32 -EB -call_nonpic /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data2.s: assembly failed ERROR: -n32 -EB -call_shared /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data1.s: assembly failed ERROR: -n32 -EB -call_nonpic /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data2.s: assembly failed ERROR: -64 -EB -call_shared /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data1.s: assembly failed ERROR: -64 -EB --defsym ELF64=1 -call_nonpic /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data2.s: assembly failed ERROR: -64 -EB -call_shared /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data1.s: assembly failed ERROR: -64 -EB --defsym ELF64=1 -call_nonpic /home/hp/binutils/src/ld/testsuite/ld-mips-elf/../ld-elf/comm-data2.s: assembly failed In ld.log: Assembler messages: Error: -march=mips32r2 is not compatible with the selected ABI Assembler messages: Error: -march=mips32r2 is not compatible with the selected ABI Looking at the source, the mipsisa32r2 in the target triple is taken as the default for the -march option, and "64-bit registers" are required. I verified a simple fix is adding a proper -march option to the test-cases for the 64-bit variants. Patch to be posted.
CVSROOT: /cvs/src Module name: src Changes by: hp@sourceware.org 2012-03-21 19:15:02 Modified files: ld/testsuite : ChangeLog ld/testsuite/ld-mips-elf: comm-data.exp Log message: PR ld/13813 * ld-mips-elf/comm-data.exp (mips_comm_data_test): For N32 and N64 tests, also specify assembler option -march=mips3. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1506&r2=1.1507 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-mips-elf/comm-data.exp.diff?cvsroot=src&r1=1.1&r2=1.2
fixed.
Long fixed.