On Sat, Sep 05, 2009 at 07:01:51PM +1000, Simon Burge wrote:
> matthew green wrote:
>
> > > I see no reason to make it fatal.
> >
> > Otherwise we cannot detect errors on release build,
> > i.e. no ksym(4) supports.
> >
> > > It means that when I build a kernel
> > > with
> > > DEBUG, my kernel build will fail. That's stupid.
> >
> > Then disable it only if DEBUG, or keep it only in your local tree.
> >
> >
> > why can't we make it size for DEBUG builds and not fail anywhere?
>
> The proper fix would be to dynamically size this somehow, so that no
> space is ever wasted.
One possible option is to 'ld -r' all the kernel except the symtab bit.
Then generate the symtab data (or just its size!) and include in a
final link phase.
David
--
David Laight: [email protected]