$ /usr/gnu/bin/ld -v
GNU ld (GNU Binutils) 2.20.1.20100303
/usr/gnu/bin/ld:built in linker script:14: syntax error
It looks like all linker scripts in the /usr/gnu/i386-pc-solaris2.11/lib/
ldscripts/ directory are broken (incomplete).
They all have less than 14 lines and look like the following script
$ cat /usr/gnu/i386-pc-solaris2.11/lib/ldscripts/elf_x86_64.xu
/* Script for ld -Ur: link w/out relocation, do create constructors */
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64",
"elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
/* For some reason, the Solaris linker makes bad executables
if gld -r is used and the intermediate file has sections starting
at non-zero addresses. Could be a Solaris ld bug, could be a GNU ld
bug. But for now assigning the zero vmas works. */
SECTIONS
{
/* Read-only sections, merged into text segment: */
.interp 0 : { *(.interp) }
.note.gnu.build-id : { *(.note.gnu.build-id) }
$
The package binutils-2.20.1 was build from source with gcc-4.4.3 on OpenSolaris
b134 (snv_134)
--
Summary: /usr/gnu/bin/ld:built in linker script:14: syntax error
Product: binutils
Version: 2.20
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: YLitvinenko at astana dot oilfield dot slb dot com
CC: bug-binutils at gnu dot org
GCC build triplet: i386-pc-solaris2.11
GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11
http://sourceware.org/bugzilla/show_bug.cgi?id=11461
------- 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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils