------- Comment #3 from mark at codesourcery dot com  2007-04-06 22:09 -------
Subject: Re:  [4.3 Regression] ld: Invalid symbol type
 for plabel (.libs/debug_list.o, __gxx_personality_v0).

dave at hiauly1 dot hia dot nrc dot ca wrote:

> Looking at this a bit, I think the fix is to add
> 
>   if (eh_personality_libfunc)
>     assemble_external_libcall (eh_personality_libfunc);
> 
> to output_call_frame_info in dwarf2out.c.

That makes sense to me.  I think you could do it just in the
for_eh/eh_personality case here:

>       if (eh_personality_libfunc)
>         {
>           *p++ = 'P';
>           augmentation_size += 1 + size_of_encoded_value (per_encoding);
>         }

That would emit the reference only in situations where we're actually
going to need the personality routine.  The reason for my earlier change
was that we were referencing it even when we'd optimized away all of the
EH information in the module.  I'm sorry this broke HP-UX; let me know
if I can help.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31322

Reply via email to