This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Do more sanity-checking in unwind-dw2-fde.c
- From: "Douglas B Rupp" <rupp at gnat dot com>
- To: "Richard Henderson" <rth at redhat dot com>,"Richard Kenner" <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 22 Apr 2003 19:02:32 -0700
- Subject: Re: Do more sanity-checking in unwind-dw2-fde.c
- Organization: Ada Core Technologies, Inc
- References: <10304182248.AA20436@vlsi1.ultra.nyu.edu> <20030421235707.GC23370@redhat.com>
- Reply-to: "Douglas B Rupp" <rupp at gnat dot com>
>
> 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.
>
>
If the .eh_frame section is empty, the VMS linker assigns a value of zero to
__EH_FRAME_BEGIN__. This patch fixed an access violation I was getting when
implementing shared libraries built with gcc.