When ld is configured with a sysroot prefix and test is executed: echo "Testing with absolute linker script (systems libz)..." echo "GROUP ( /lib/libz.so )" > "${PWD}/libfoo-script.so" armv4tl-softfloat-linux-gnueabi-gcc test.c -o test libfoo-script.so
the linking process terminates with Testing with absolute linker script (systems libz)... /lib/libz.so: file not recognized: File format not recognized collect2: ld returned 1 exit status because the Host's library is linked in. For cross-compilation the desired behaviour is different. Here, the lib specified in the linker script should be searched in the sysroot first! Patch will be attached. -- Summary: ld doesn't honor sysroot prefix for ldscripts Product: binutils Version: 2.19 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: OdinsHorse at googlemail dot com CC: bug-binutils at gnu dot org GCC target triplet: armv4tl-softfloat-linux-gnueabi http://sourceware.org/bugzilla/show_bug.cgi?id=10340 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils