Subject: Re: Re: Re: Re: "overlaps section .rodata" on kernel build
To: Andrey Petrov <petrov@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 01/08/2005 23:09:07
On Sat, Jan 08 2005 - 13:54, Andrey Petrov wrote:
> On Sat, Jan 08, 2005 at 10:33:20PM +0100, Joel CARNAT wrote:
> > right, so I commented out a lots of things (thX sysutils/adjustkernel ;) and 
> > the kernel compiled till the end !
> > 
> > what looks strange is that the kernel is 5.6M... the same size as GENERIC...
> > 
> 
> File size doesn't mean much, you need to use size(1) or objdump(1). Also

 ah ? I thought having code (or not) for devices would make it bigger (or smaller),
 especially when everything is inside the kernel.

> I would not set commonly used definitions as CFLAGS and friends in mk.conf,
> they just have too global impact. For kernel build look at sys/conf/Makefile.kern.inc
> and set specificly what you need. I also don't see a reason not to use compiler
> optimisation.
> 

 hum... I don't really know... after a few testings I discovered that stilling linux/gentoo
 optimization flags just made buggy netbsd binaries, so I used "Benedikt Meurer's NetBSD tips & tricks"
 to delete any optimization.

 in fact I never achieve to figure if optimizations were really usefull...
 I never got XFree or Mozilla going faster with optimizations.
 And playing with optimizations always got me bugging software.
 That's why I "disabled" them.
 
-- 

,- This mail runs ------.
`--------- NetBSD/i386 -'