[CFT] re-organize var-tracking frame_base

John David Anglin dave@hiauly1.hia.nrc.ca
Wed Sep 14 00:56:00 GMT 2005


> Executing on host: /test/gnu/gcc-3.3/objdir/gcc/xgcc -B/test/gnu/gcc-3.3/objdir/
> gcc/ /test/gnu/gcc-3.3/gcc/gcc/testsuite/gcc.dg/20021014-1.c   -O2 -p -static -f
> no-show-column  -lm   -o ./20021014-1.exe    (timeout = 300)
> ld: Unsatisfied symbol "pthread_mutex_unlock" in file /test/gnu/gcc-3.3/objdir/g
> cc/libgcc_eh.a[unwind-dw2-fde.o]

> I see that unwind-dw2-fde.o is required to resolve __register_frame_info.
> I guess this must now occur because USE_EH_FRAME_REGISTRY is defined.

Using -Wl,-v, I see:

/test/gnu/gcc-3.3/objdir/gcc/crtbeginT.o:
    _Jv_RegisterClasses is DEFINED WEAK FUNC
    __dso_handle is DEFINED GLOBAL OBJECT
    __deregister_frame_info is UNDEF WEAK FUNC
    __register_frame_info is UNDEF WEAK FUNC

Selecting /test/gnu/gcc-3.3/objdir/gcc/libgcc_eh.a[unwind-dw2-fde.o] to resolve
__register_frame_info

Bah, this would appear to be a HP linker bug.  The linker isn't supposed
to extract archive members to resolve undefined weak symbols.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



More information about the Gcc-patches mailing list