Do more sanity-checking in unwind-dw2-fde.c

Richard Henderson rth@redhat.com
Mon Apr 21 23:58:00 GMT 2003


On Fri, Apr 18, 2003 at 06:48:23PM -0400, Richard Kenner wrote:
> I'm not exactly sure when this was encountered.
> 
> Tested on i686-pc-linux-gnu.
> 
> Tue Mar 18 17:40:00 2003  Douglas B Rupp  <rupp@gnat.com>
> 
> 	* unwind-dw2-fde.c (__register_frame_info_bases): Check for
> 	null begin parameter (as well as pointer to null).
> 	(__deregister_frame_info_bases): Likewise.

This can't possibly be correct.


STATIC EH_FRAME_SECTION_CONST char __EH_FRAME_BEGIN__[]
     __attribute__((section(EH_FRAME_SECTION_NAME), aligned(4)))
     = { };
...
    __deregister_frame_info_bases (__EH_FRAME_BEGIN__);
...
    __register_frame_info_bases (__EH_FRAME_BEGIN__, &object, tbase, dbase);


At what point is &__EH_FRAME_BEGIN__[0] going to be null?
This symbol *isn't* weak.


r~



More information about the Gcc-patches mailing list