Launchpad has imported 4 comments from the remote bug at
http://sourceware.org/bugzilla/show_bug.cgi?id=10340.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2009-06-28T06:53:14+00:00 Odinshorse wrote:

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.

Reply at: https://bugs.launchpad.net/binutils/+bug/625320/comments/0

------------------------------------------------------------------------
On 2009-06-28T06:55:03+00:00 Odinshorse wrote:

Created attachment 4025
ld should search search in sysroot first

When ld was configured with a sysroot, it should always search for libraries
with absolute filename in this sysroot first.

Reply at: https://bugs.launchpad.net/binutils/+bug/625320/comments/1

------------------------------------------------------------------------
On 2009-06-28T06:56:58+00:00 Odinshorse wrote:

Comment on attachment 4025
ld should search search in sysroot first

When ld was configured with a sysroot, it should always search for libraries
with absolute filename in this sysroot first. This patch was tested on
x86_64-pc-linux-gnu without sysroot and armv4tl-softfloat-linux-gnueabi with
sysroot and works ffine on both.

Reply at: https://bugs.launchpad.net/binutils/+bug/625320/comments/2

------------------------------------------------------------------------
On 2009-06-28T16:43:19+00:00 MikeFrysinger wrote:

background discussion can be found here:
http://sourceware.org/ml/binutils/2009-05/msg00480.html

Reply at: https://bugs.launchpad.net/binutils/+bug/625320/comments/3


** Changed in: binutils
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/625320

Title:
  ld doesn't honor sysroot prefix for ldscripts - track upstream bug

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to