This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: binutils-2.11 ld testsuite problems + PATCH
Sir!
I get it now. Sometimes it takes a while...
Sigh.
I found the results interesting though....
"H . J . Lu" wrote:
>
> On Tue, May 08, 2001 at 09:09:03PM -0700, Matthew Schalit wrote:
> > /home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld-partial.o -r ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
> > /home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o
> > /home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
>
> Please run
>
> # /home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o -verbose
GNU ld version 2.11.90 (with BFD 2.11.90)
Supported emulations:
elf_i386
using internal linker script:
==================================================
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
"elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/i586-sco-sysv5uw7.1.1/lib);
/* Do we need any of these for elf?
__DYNAMIC = 0; */
SECTIONS
{
/* Read-only sections, merged into text segment: */
. = 0x08048000 + SIZEOF_HEADERS;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.init : { *(.rel.init) }
.rela.init : { *(.rela.init) }
.rel.text :
{
*(.rel.text)
*(.rel.text.*)
*(.rel.gnu.linkonce.t.*)
}
.rela.text :
{
*(.rela.text)
*(.rela.text.*)
*(.rela.gnu.linkonce.t.*)
}
.rel.fini : { *(.rel.fini) }
.rela.fini : { *(.rela.fini) }
.rel.rodata :
{
*(.rel.rodata)
*(.rel.rodata.*)
*(.rel.gnu.linkonce.r.*)
}
.rela.rodata :
{
*(.rela.rodata)
*(.rela.rodata.*)
*(.rela.gnu.linkonce.r.*)
}
.rel.data :
{
*(.rel.data)
*(.rel.data.*)
*(.rel.gnu.linkonce.d.*)
}
.rela.data :
{
*(.rela.data)
*(.rela.data.*)
*(.rela.gnu.linkonce.d.*)
}
.rel.ctors : { *(.rel.ctors) }
.rela.ctors : { *(.rela.ctors) }
.rel.dtors : { *(.rel.dtors) }
.rela.dtors : { *(.rela.dtors) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
.rel.sdata :
{
*(.rel.sdata)
*(.rel.sdata.*)
*(.rel.gnu.linkonce.s.*)
}
.rela.sdata :
{
*(.rela.sdata)
*(.rela.sdata.*)
*(.rela.gnu.linkonce.s.*)
}
.rel.sbss :
{
*(.rel.sbss)
*(.rel.sbss.*)
*(.rel.gnu.linkonce.sb.*)
}
.rela.sbss :
{
*(.rela.sbss)
*(.rela.sbss.*)
*(.rel.gnu.linkonce.sb.*)
}
.rel.sdata2 :
{
*(.rel.sdata2)
*(.rel.sdata2.*)
*(.rel.gnu.linkonce.s2.*)
}
.rela.sdata2 :
{
*(.rela.sdata2)
*(.rela.sdata2.*)
*(.rela.gnu.linkonce.s2.*)
}
.rel.sbss2 :
{
*(.rel.sbss2)
*(.rel.sbss2.*)
*(.rel.gnu.linkonce.sb2.*)
}
.rela.sbss2 :
{
*(.rela.sbss2)
*(.rela.sbss2.*)
*(.rela.gnu.linkonce.sb2.*)
}
.rel.bss :
{
*(.rel.bss)
*(.rel.bss.*)
*(.rel.gnu.linkonce.b.*)
}
.rela.bss :
{
*(.rela.bss)
*(.rela.bss.*)
*(.rela.gnu.linkonce.b.*)
}
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init :
{
KEEP (*(.init))
} =0x9090
.plt : { *(.plt) }
.text :
{
*(.text)
*(.text.*)
*(.stub)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
*(.gnu.linkonce.t.*)
} =0x9090
.fini :
{
KEEP (*(.fini))
} =0x9090
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.sdata2 : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
.sbss2 : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x1000) + (. & (0x1000 - 1));
.data :
{
*(.data)
*(.data.*)
*(.gnu.linkonce.d.*)
SORT(CONSTRUCTORS)
}
.data1 : { *(.data1) }
.eh_frame : { KEEP (*(.eh_frame)) }
.gcc_except_table : { *(.gcc_except_table) }
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.o(.ctors))
/* We don't want to include the .ctor section from
from the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.o(.dtors))
KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.got : { *(.got.plt) *(.got) }
.dynamic : { *(.dynamic) }
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
.sdata :
{
*(.sdata)
*(.sdata.*)
*(.gnu.linkonce.s.*)
}
_edata = .;
PROVIDE (edata = .);
__bss_start = .;
.sbss :
{
PROVIDE (__sbss_start = .);
PROVIDE (___sbss_start = .);
*(.dynsbss)
*(.sbss)
*(.sbss.*)
*(.gnu.linkonce.sb.*)
*(.scommon)
PROVIDE (__sbss_end = .);
PROVIDE (___sbss_end = .);
}
.bss :
{
*(.dynbss)
*(.bss)
*(.bss.*)
*(.gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections. */
. = ALIGN(32 / 8);
}
. = ALIGN(32 / 8);
_end = .;
PROVIDE (end = .);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* These must appear regardless of . */
}
==================================================
attempt to open /usr/ccs/lib/crt1.o succeeded
/usr/ccs/lib/crt1.o
attempt to open tmpdir/ld-partial.o succeeded
tmpdir/ld-partial.o
attempt to open ../bfd/.libs/libbfd.a succeeded
(../bfd/.libs/libbfd.a)archive.o
(../bfd/.libs/libbfd.a)archures.o
(../bfd/.libs/libbfd.a)bfd.o
(../bfd/.libs/libbfd.a)cache.o
(../bfd/.libs/libbfd.a)format.o
(../bfd/.libs/libbfd.a)init.o
(../bfd/.libs/libbfd.a)libbfd.o
(../bfd/.libs/libbfd.a)opncls.o
(../bfd/.libs/libbfd.a)reloc.o
(../bfd/.libs/libbfd.a)section.o
(../bfd/.libs/libbfd.a)targets.o
(../bfd/.libs/libbfd.a)hash.o
(../bfd/.libs/libbfd.a)linker.o
(../bfd/.libs/libbfd.a)srec.o
(../bfd/.libs/libbfd.a)binary.o
(../bfd/.libs/libbfd.a)tekhex.o
(../bfd/.libs/libbfd.a)ihex.o
(../bfd/.libs/libbfd.a)elf32-i386.o
(../bfd/.libs/libbfd.a)elf32.o
(../bfd/.libs/libbfd.a)elf.o
(../bfd/.libs/libbfd.a)elflink.o
(../bfd/.libs/libbfd.a)dwarf1.o
(../bfd/.libs/libbfd.a)/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
coff-i386.o
(../bfd/.libs/libbfd.a)cofflink.o
(../bfd/.libs/libbfd.a)elf32-gen.o
(../bfd/.libs/libbfd.a)cpu-i386.o
(../bfd/.libs/libbfd.a)coffgen.o
(../bfd/.libs/libbfd.a)syms.o
(../bfd/.libs/libbfd.a)stabs.o
(../bfd/.libs/libbfd.a)merge.o
(../bfd/.libs/libbfd.a)dwarf2.o
attempt to open ../libiberty/libiberty.a succeeded
(../libiberty/libiberty.a)concat.o
(../libiberty/libiberty.a)cplus-dem.o
(../libiberty/libiberty.a)cp-demangle.o
(../libiberty/libiberty.a)dyn-string.o
(../libiberty/libiberty.a)fnmatch.o
(../libiberty/libiberty.a)getopt.o
(../libiberty/libiberty.a)getopt1.o
(../libiberty/libiberty.a)getruntime.o
(../libiberty/libiberty.a)hex.o
(../libiberty/libiberty.a)objalloc.o
(../libiberty/libiberty.a)obstack.o
(../libiberty/libiberty.a)safe-ctype.o
(../libiberty/libiberty.a)xatexit.o
(../libiberty/libiberty.a)xexit.o
(../libiberty/libiberty.a)xmalloc.o
(../libiberty/libiberty.a)xstrdup.o
(../libiberty/libiberty.a)xstrerror.o
(../libiberty/libiberty.a)strncmp.o
attempt to open ./../intl/libintl.a succeeded
(./../intl/libintl.a)intl-compat.o
(./../intl/libintl.a)bindtextdom.o
(./../intl/libintl.a)dcgettext.o
(./../intl/libintl.a)dgettext.o
(./../intl/libintl.a)gettext.o
(./../intl/libintl.a)finddomain.o
(./../intl/libintl.a)loadmsgcat.o
(./../intl/libintl.a)localealias.o
(./../intl/libintl.a)textdomain.o
(./../intl/libintl.a)l10nflist.o
(./../intl/libintl.a)explodename.o
attempt to open /usr/local/i586-sco-sysv5uw7.1.1/lib/libc.so failed
attempt to open /usr/local/i586-sco-sysv5uw7.1.1/lib/libc.a failed
attempt to open /lib/libc.so failed
attempt to open /lib/libc.a failed
attempt to open /usr/lib/libc.so failed
attempt to open /usr/lib/libc.a failed
attempt to open /usr/local/lib/libc.so failed
attempt to open /usr/local/lib/libc.a failed
attempt to open /usr/local/i586-sco-sysv5uw7.1.1/lib/libc.so failed
attempt to open /usr/local/i586-sco-sysv5uw7.1.1/lib/libc.a failed
-------------------------------------------------------------------------------------
> # ls -l /usr/ccs/lib
-----------------------------------------------------------------------------
total 17064
-rwxr-xr-x 1 bin bin 737948 Oct 12 1999 acomp
-rwxr-xr-x 1 bin bin 13136 Apr 3 1998 basicblk
-r--r--r-- 1 bin bin 2650 Apr 3 1998 cm4defs
-rwxr-xr-x 1 bin bin 25980 Apr 3 1998 cpp
-r--r--r-- 1 bin bin 960 Oct 12 1999 crt1.o
-r--r--r-- 1 bin bin 560 Oct 12 1999 crti.o
-r--r--r-- 1 bin bin 508 Oct 12 1999 crtn.o
drwxr-xr-x 2 bin bin 96 Mar 12 2000 ctrace
-rwxr-xr-x 1 bin bin 5308 Apr 3 1998 dag
-r--r--r-- 1 bin bin 348 Apr 3 1998 debug_alias
drwxr-xr-x 2 bin bin 1024 Mar 12 2000 debug_config
-rwxr-xr-x 1 bin bin 636064 Oct 12 1999 debug.motif.ui
-r--r--r-- 1 bin bin 1172732 Oct 12 1999 fe.so
-rwxr-xr-x 1 bin bin 3008 Apr 3 1998 flip
drwxr-xr-x 2 bin bin 1024 Mar 12 2000 fur
drwxr-xr-x 3 bin bin 1024 Mar 12 2000 help
-r--r--r-- 1 bin bin 2812 Apr 3 1998 intrinsics
drwxr-xr-x 2 bin bin 96 Mar 12 2000 lex
-r--r--r-- 1 bin bin 891628 Nov 1 2000 libc.a
-r--r--r-- 1 bin bin 3184 Apr 3 1998 libcrt.a
-r--r--r-- 1 bin bin 594220 Nov 1 2000 libc.so
-r--r--r-- 1 bin bin 28320 Oct 12 1999 libcudk70.a
-r--r--r-- 3 bin bin 491048 Aug 24 2000 libcurses.a
-r--r--r-- 1 bin bin 4572 Apr 3 1998 libdl.so
-r--r--r-- 1 bin bin 98860 Oct 12 1999 libelf.a
-r--r--r-- 1 bin bin 75404 Oct 12 1999 libform.a
-r--r--r-- 2 bin bin 66960 Sep 15 2000 libfprof.so
-r--r--r-- 2 bin bin 66960 Sep 15 2000 libfprof.so.1
-r--r--r-- 1 bin bin 77472 Apr 3 1998 libgen.a
-r--r--r-- 1 bin bin 4236 Apr 3 1998 libl.a
-r--r--r-- 1 bin bin 20152 Apr 3 1998 libld.a
-r--r--r-- 1 bin bin 89496 Apr 3 1998 libm.a
-r--r--r-- 1 bin bin 504 Apr 3 1998 libmalloc.a
-r--r--r-- 1 bin bin 36148 Oct 12 1999 libmenu.a
-r--r--r-- 3 bin bin 428680 Oct 12 1999 libocurses.a
-r--r--r-- 3 bin bin 428680 Oct 12 1999 libotermcap.a
-r--r--r-- 3 bin bin 428680 Oct 12 1999 libotermlib.a
drwxr-xr-x 2 bin bin 1024 Nov 22 15:41 libp
-r--r--r-- 1 bin bin 9864 Apr 3 1998 libpanel.a
-r--r--r-- 1 bin bin 22332 Oct 12 1999 libprof.a
-r--r--r-- 1 bin bin 85268 Apr 3 1998 libtam.a
-r--r--r-- 3 bin bin 491048 Aug 24 2000 libtermcap.a
-r--r--r-- 3 bin bin 491048 Aug 24 2000 libtermlib.a
-r--r--r-- 1 bin bin 15 Apr 3 1998 libxnet.a
-r--r--r-- 1 bin bin 1248 Apr 3 1998 liby.a
-rwxr-xr-x 1 bin bin 252284 Oct 12 1999 lint1
-rwxr-xr-x 1 bin bin 23072 Oct 12 1999 lint2
-r--r--r-- 1 bin bin 3154 Apr 3 1998 llib-lc
-r--r--r-- 1 bin bin 108108 Apr 3 1998 llib-lc.ln
-rwxr-xr-x 1 bin bin 17383 Oct 12 1999 llib-lcurses
-rwxr-xr-x 1 bin bin 81533 Oct 12 1999 llib-lcurses.ln
-r--r--r-- 1 bin bin 90 Apr 3 1998 llib-ldl
-r--r--r-- 1 bin bin 817 Apr 3 1998 llib-ldl.ln
-r--r--r-- 1 bin bin 92 Apr 3 1998 llib-lelf
-r--r--r-- 1 bin bin 5964 Apr 3 1998 llib-lelf.ln
-r--r--r-- 1 bin bin 6148 Apr 3 1998 llib-lform
-r--r--r-- 1 bin bin 9938 Apr 3 1998 llib-lform.ln
-r--r--r-- 1 bin bin 232 Apr 3 1998 llib-lgen
-r--r--r-- 1 bin bin 10436 Apr 3 1998 llib-lgen.ln
-r--r--r-- 1 bin bin 384 Apr 3 1998 llib-ll
-r--r--r-- 1 bin bin 300 Apr 3 1998 llib-lld
-r--r--r-- 1 bin bin 4625 Apr 3 1998 llib-lld.ln
-r--r--r-- 1 bin bin 693 Apr 3 1998 llib-ll.ln
-r--r--r-- 1 bin bin 211 Apr 3 1998 llib-lm
-r--r--r-- 1 bin bin 95 Apr 3 1998 llib-lmalloc
-r--r--r-- 1 bin bin 938 Apr 3 1998 llib-lmalloc.ln
-r--r--r-- 1 bin bin 3544 Apr 3 1998 llib-lmenu
-r--r--r-- 1 bin bin 7870 Apr 3 1998 llib-lmenu.ln
-r--r--r-- 1 bin bin 6918 Apr 3 1998 llib-lm.ln
-rwxr-xr-x 1 bin bin 17353 Oct 12 1999 llib-locurses
-rwxr-xr-x 1 bin bin 69791 Oct 12 1999 llib-locurses.ln
-r--r--r-- 1 bin bin 1504 Apr 3 1998 llib-lpanel
-r--r--r-- 1 bin bin 2861 Apr 3 1998 llib-lpanel.ln
-r--r--r-- 1 bin bin 5826 Apr 3 1998 llib-ltam
-r--r--r-- 1 bin bin 10847 Apr 3 1998 llib-ltam.ln
-r--r--r-- 1 bin bin 98 Apr 3 1998 llib-ly
-r--r--r-- 1 bin bin 245 Apr 3 1998 llib-ly.ln
-rwxr-xr-x 1 bin bin 6312 Apr 3 1998 lpfx
-r--r--r-- 1 bin bin 1292 Oct 12 1999 mcrt1.o
-rwxr-xr-x 1 bin bin 3952 Apr 3 1998 nmf
-rwxr-xr-x 1 bin bin 362908 Oct 12 1999 optim
-r--r--r-- 1 bin bin 1276 Oct 12 1999 pcrt1.o
-rwxr-xr-x 1 bin bin 99460 Oct 12 1999 tamhelp
drwxr-xr-x 3 bin bin 1024 Mar 12 2000 tutorial
-r--r--r-- 1 bin bin 356 Apr 3 1998 values-Xa.o
-r--r--r-- 1 bin bin 356 Apr 3 1998 values-Xc.o
-r--r--r-- 1 bin bin 356 Apr 3 1998 values-Xt.o
-rwxr-xr-x 1 bin bin 9044 Oct 12 1999 xref
-r--r--r-- 1 bin bin 11005 Apr 3 1998 yaccpar
-------------------------------------------------------------------------
> # ls -l /usr/lib/libc.*
-------------------------------------------------------------------------------
-rwxr-xr-x 2 bin bin 513524 Nov 1 2000 /usr/lib/libc.so.1
-------------------------------------------------------------------------------
> and post the output.
>
> H.J.
Sorry about the confusion.
Matthew