|
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.
|