3.3 problem of -fzero-initialized-in-bss w/-ffreestanding

Eric Botcazou ebotcazou@libertysurf.fr
Tue Jul 15 07:17:00 GMT 2003


> How does it break Emacs - and what's the workaround?

Emacs uses a PCH-like mechanism that makes assumptions about the layout of 
sections in the image of the executable in memory. This doesn't work anymore 
with GCC 3.3 on at least Solaris 7, 8 and 9.

The workaround is to pass CFLAGS="-g -O2 -fno-zero-initialized-in-bss" to the 
configure script (tested on Solaris 8 and 9).

See http://gcc.gnu.org/PR11386 for the whole story and a pointer to the Emacs 
patch.

-- 
Eric Botcazou



More information about the Gcc mailing list