This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2.1.94: No way to compile for mipsel-linux-gnu w/o optimization


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]