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: shared lib problem with atexit


Jakub Jelinek writes:
> > # gcc -shared -O -Wall low.c -o liblow.so
>     ^^^ what gcc is this?

It's a gcc-2.95.3. The latest release approved by the GCC steering
committee.

> The issue is that those gcc's referenced atexit (as workaround for
> some libc 5 bugs I think) in crtendS.o (and as this is always after
> -lc, atexit.oS from libc_nonshared.a simply was not brought in).

Yes, I noticed that too. But if the dynamic linker can cope with the
situation that 'liblow.so' wants 'atexit' and libc.so.6 offers only
'atexit@GLIBC_2.0', then why does ld not do the same?

> If it is not gcc 2.95.4 CVS, gcc-2.96-RH of recent vintage, gcc-3_0-branch
> of recent vintage or recent gcc CVS head, then it will not work as you
> describe on ia32. 
> I'd say it is a user bug not to use one of the above compilers with
> glibc 2.2.3.

Oh well, I hadn't read the glibc-2.2.3 announcement carefully enough :-(

Bruno


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