This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Hardening of __do_global_dtors_aux
On Thu, May 10, 2007 at 05:22:43AM -0400, Jakub Jelinek wrote:
> On Thu, May 10, 2007 at 10:13:21AM +0200, Rask Ingemann Lambertsen wrote:
> > Powerpc-eabisim is broken at the moment: libgfortran, boehm-gc, libffi
> > and who knows what fails to configure. From libffi/cofigure.log:
>
> What ppc eabi is doing is ugly at best, using __DTOR_END__ for 2 different
> things (in crtend*.o for the address of the final NULL in .dtors section
> and in ecrtn.o for the end of .dtors section (i.e. crtend*.o's
> __DTOR_END__+1 == ecrtn.o's __DTOR_END__) and relying on static in
> crtend*.o.
>
> There are multiple ways to fix this up.
> 1) change config/rs6000/*-cn.asm and config/rs6000/eabi.asm, replace
> __DTOR_END__ there with some name
FWIW, I'd recommend this option.
--
Daniel Jacobowitz
CodeSourcery