OpenSolaris

Printable Version Enter a New Search
Bug ID 6341017
Synopsis GNU ld can't find its own ld scripts
State 10-Fix Delivered (Fix available in build)
Category:Subcategory consolidation:sfw
Keywords no-s10u4 | xen
Responsible Engineer Mark Johnson
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_46
Fixed In snv_46
Release Fixed solaris_nevada(snv_46)
Related Bugs
Submit Date 24-October-2005
Last Update Date 26-April-2007
Description
Trying to use gld's -m option gives:

gld   -m elf_i386  -r -o common.o  ...
gld: cannot open linker script file ldscripts/elf_i386.xr: No such file or directory

trussing gld shows:

xstat(2, "/usr/sfw/bin/../lib/ldscripts", 0x080475E0) Err#2 ENOENT
xstat(2, "/usr/sfw/i386-pc-solaris2.11/lib/ldscripts", 0x080475E0) Err#2 ENOENT

but gld is installed with the path /usr/sfw/i386-sun-solaris2.11/, as defined
in install-sfw for SUNWbinutils:

OSPREFIX="`uname -p`-sun-solaris2`uname -r | sed -e 's/[^.]*//'`"
FYI, I've built my own SUNWbinutils using the corrected name, and
things seem to work fine, so the fix might be as simple as that.
Work Around
N/A
Comments
N/A