This is the mail archive of the libc-hacker@sourceware.cygnus.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: DWARF EH for PPC


> >> has exceptions in it.  gcc 2.7/2.8 does not have these functions in
> >> its libgcc.a, and doesn't refer to them in programs it compiles.
> >
> >That won't happen on ELF with my patch to crtstuff.c
> 
> Which patch to crtstuff.c is that?  I still had the problem with
> snapshot egcs as of a couple days ago.

I sent in this patch

Sun Apr 26 13:51:04 1998  H.J. Lu  (hjl@gnu.org)

        * crtstuff.c (__register_frame_info, __deregister_frame_info):
        If CRTSTUFFS_O is not defined and HANDLE_SYSV_PRAGMA is
        defined, make them weak and check if they are none-zero before
        calling them.

in April. I left __register_frame_info and __deregister_frame_info in
shared libraries since some binaries need them. However, you won't
get them in the C executables.

> 
> Please check again.  The scenario I had was definitely that libc
> exported the frame functions and libm, libstdc++, etc. had undefined

# nm -D /lib/libc-2.0.7.so | grep frame
# nm -D /lib/libm-2.0.7.so | grep frame
00014500 T __deregister_frame
00014458 T __deregister_frame_info
00014528 T __frame_state_for
0001438c T __register_frame
00014314 T __register_frame_info
000143b8 T __register_frame_info_table
0001442c T __register_frame_table

BTW, I built glibc 2.0.7 from the latest CVS. I have no ideas why you
got different results.

> >All those problems should be solved with my library versioning patch,
> >which is in the egcs main trunk. It is too bad that it is not in egcs
> >1.1.1. However, I do have a patch for egcs 1.1.1.
> 
> I don't think library versioning will help here.  That just prevents
> you from mixing up libstdc++ compiled by gcc with libstdc++ compiled
> by egcs.  The bug Debian sees affects _every_ shared library - C or
> C++ - compiled by egcs.
> 

I still don't understand what is going on. I have no problems with
RedHat 5.2. Please tell me how I can reproduce the problem with stock
egcs 1.1.1 and glibc 2.0.7. I will see what I can do.


-- 
H.J. Lu (hjl@gnu.org)


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