This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>
> 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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]