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: libgcc_s.so.1 ASIS won't work with glibc.


On Tue, Jul 03, 2001 at 10:19:48AM -0700, Richard Henderson wrote:
> On Tue, Jul 03, 2001 at 07:53:02AM -0700, H . J . Lu wrote:
> > When you recompile glibc with g++ v3, your binaries get
> > 
> > 1. The g++ v2 EH from libgcc.a in g++ v2. And
> > 2. The frame functions in glibc linked against libgcc.a in g++ v3.
> 
> Ok, what are the reasons that the DSO would use the v2 EH
> that it has included in itself?  It is earlier in the search

It can happen with

# gcc -g -fPIC -c bar.cc
# gcc -shared -o libbar.so bar.o -lc

I know it is kind of odd. But some old versions of libtool do that. It
works with C code. I am enclosing a testcase here.

1. Compile it under RedHat 7.1.
2. Recompile glibc with gcc 3.0.1.
3. Run it against with the new glibc.

The key point is you should try to avoid to have 2 functions with
different ABIs with the same name and version. I think my proposal
should work.


H.J.

bug.tar.gz


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