This is the mail archive of the
mailing list for the glibc project.
Re: egcs-19980921 on i586-linux miscompiles ld-linux.so.2 in glibc-2.0.96
- To: Andreas Jaeger <email@example.com>
- Subject: Re: egcs-19980921 on i586-linux miscompiles ld-linux.so.2 in glibc-2.0.96
- From: Horst von Brand <firstname.lastname@example.org>
- Date: Sun, 27 Sep 1998 16:07:03 -0500
- cc: email@example.com, firstname.lastname@example.org
Andreas Jaeger <email@example.com> said:
> Horst von Brand's message of "Sat, 26 Sep 1998 23:07:39 -0400":
> >>>>> Horst von Brand writes:
> >> [...]
> >> Synopsis: Crash of ld-linux.so.2 when compiled with egcs snapshot
> >> [...]
> > Addons: crypt linuxthreads
> > Build CFLAGS: -O2 -march=pentium
> > Build CC: gcc
> > Compiler version: egcs-2.92.11 19980921 (gcc2 ss-980609 experimental)
> > Kernel headers: 2.1.123
> > Symbol versioning: yes
> > Build static: yes
> > Build shared: yes
> > Build pic-default: no
> > Build profile: yes
> > Build omitfp: yes
> With build-omitpf -O99 is used. This might be a too high
Why? If it's "too high", you shouldn't be able to get it in the first
place. Extreme, maybe, I'll grant you that. Note OTOH that I'm doing this
to check out egcs and glibc, so peeking into the corners is warranted.
> > [...]
> > With egcs-2.91.57 (egcs-1.1) everything works fine, AFAIKS. There is
> > an error message when omitting LD_LIBRARY_PATH in this case, however
> > (long line folded):
> > /bin/ls: error in loading shared libraries: /lib/libc.so.6: \
> > symbol _dl_default_scope, version GLIBC_2.0 not defined in file \
> > ld-linux.so.2 with link time reference
> That's to be expected. You've to use ld-linux and libc from the same
> version and shouldn't mix them.
That's what I thought too. But the fact that ld-linux.so.2 crashes the
same way in both cases (when it clearly shouldn't, as you state) might be
interesting in itself.
> >> Fix:
> > Don't use that particular egcs snapshot.
> Or fix this egcs snapshot;-).
OK, glibcbug asked for a fix or workaround. No fix known to me, workaround
given. Don't take me too seriously...
Horst von Brand firstname.lastname@example.org
Casilla 9G, Viņa del Mar, Chile +56 32 672616