[patch 8/9] Nios II port, ld testsuite fixes

Sandra Loosemore sandra@codesourcery.com
Thu Jan 24 20:22:00 GMT 2013


This patch fixes some testsuite failures and errors I encountered while 
working on the Nios II port.  A couple notes:

The Nios II ABI only supports the relocations for PIC on Linux targets, 
and the ELF compiler gives an error with -fPIC.  I believe MIPS ELF and 
possibly some other bare-metal targets don't support shared libraries or 
PIC, either.

Besides the two problems with lto.exp that I've fixed in this patch, 
there are still some spurious errors remaining there -- e.g., it assumes 
that the default linker script provides a hosted environment (printf), 
which isn't the case for our Nios II ELF configuration -- but maybe 
someone who better understands what is being tested there can suggest 
better ways to fix those problems.

-Sandra


2013-01-24  Sandra Loosemore  <sandra@codesourcery.com>

	ld/testsuite/
	* ld-elf/indirect.exp: Skip on targets that don't support
	-shared -fPIC.
	* ld-elfcomm/elfcomm.exp: Build with -G0 for nios2.
	* ld-plugin/lto.exp: Skip shared library tests on targets that
	don't support them.  Skip execution tests on non-native targets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-8.patch
Type: text/x-patch
Size: 2354 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130124/298fe18b/attachment.bin>


More information about the Binutils mailing list