This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: 2.1.94: No way to compile for mipsel-linux-gnu w/o optimization
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: 2.1.94: No way to compile for mipsel-linux-gnu w/o optimization
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Mon, 9 Oct 2000 17:25:52 +0200 (MET DST)
- cc: libc-alpha at sourceware dot cygnus dot com, Andreas Jaeger <aj at suse dot de>
- Organization: Technical University of Gdansk
On 9 Oct 2000, Ulrich Drepper wrote:
> > 2000-10-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
> >
> > * sysdeps/generic/dl-sysdep.c (__libc_argc): Define to prevent
> > from inclusion of init-first.
> > (__libc_argv): Likewise.
>
> I fail to see where these definitions are needed. Can you list the
> entire dependency chain?
It fails with:
mipsel-linux-gcc -nostdlib -nostartfiles -r -o librtld.os '-Wl,-('
dl-allobjs.os ../libc_pic.a -lgcc '-Wl,-)'
because librtld.os includes a definition of __libc_multiple_libcs
(originating from sysdeps/generic/dl-sysdep.c) and ../libc_pic.a includes
another one (from sysdeps/unix/sysv/linux/init-first.c). Init-first.c
gets pulled in because nothing else provides either __libc_argc or
__libc_argv and these symbols are used by elf/dl-open.c (the code of which
is included in librtld.os).
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +