[parisc-linux] Re: new debs built, c++ is broken

John David Anglin dave@hiauly1.hia.nrc.ca
Thu, 15 Mar 2001 02:11:02 -0500 (EST)


> [copying to the list, as this may help people debug similar problems]
> 
> (gdb) bt
> #0  0x0000d22c in __register_frame_info (begin=0x42e68, ob=0x4f7cc)
>     at /src/parisc/gcc/gcc/frame-dwarf2.c:561
> #1  0x0000afe0 in frame_dummy ()
> #2  0x0000a4f8 in _init ()
> 
> Disassembling the functions in question,
> 
> __register_frame_info is PIC
> frame_dummy is not PIC, and trashes r19
> _init is PIC
> 
> which expains the crash.  The next question is why do we have such a mess
> of pic/non-pic code?  Running the compile with -Wl,-M to turn on linker

Uh?  Non pic code has always called pic code in libgcc.  Trashing r19
in frame_dummy shouldn't be a problem.  Is the return through a stub?
I suspect _init shouldn't be pic.

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