Peter Wemm peter at
Fri Apr 15 12:28:30 PDT 2005

On Sunday 27 March 2005 05:43 am, Dag-Erling Smørgrav wrote:
> Danny Braniss <danny at> writes:
> > it seems that options INCLUDE_CONFIG_FILE in the kernel conf. file
> > does not work:
> >
> > strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p'
> > _````QQQQ
> > _
> The compiler optimizes it away because it's declared static.  I have
> no idea why this wasn't a problem before; probably a change in
> compiler flags or in the compiler itself.

gcc-3.4 does entire-file optimization, while 3.3 and earlier look at functions 
at a time.  As a result, gcc is now very good at finding static unused 

We might need to do something different.  I'd almost like to insert the config 
file into its own ELF section via objcopy...


More information about the freebsd-amd64 mailing list