bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/10340] New: ld doesn't honor sysroot prefix for ldscripts


From: OdinsHorse at googlemail dot com
Subject: [Bug ld/10340] New: ld doesn't honor sysroot prefix for ldscripts
Date: 28 Jun 2009 06:53:15 -0000

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]