INCLUDE_CONFIG_FILE broken?
Roland Smith
rsmith at xs4all.nl
Fri Apr 15 15:04:57 PDT 2005
On Fri, Apr 15, 2005 at 12:27:44PM -0700, Peter Wemm wrote:
> On Sunday 27 March 2005 05:43 am, Dag-Erling Smørgrav wrote:
> > Danny Braniss <danny at cs.huji.ac.il> 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.
> >
> > DES
>
> 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 things.
>
> We might need to do something different. I'd almost like to insert
> the config file into its own ELF section via objcopy...
Why not use gcc's __attribute__ ((unused))?
Roland
--
R.F. Smith /"\ ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail
public key: http://www.keyserver.net / \ Respect for open standards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20050416/6accf470/attachment.bin
More information about the freebsd-amd64
mailing list