2008-12-31 05:30:45

by Pei Lin

[permalink] [raw]
Subject: Why kernel make obj file with debug info ?

Hi ,
I found kernel use Kbuild to make obj-file,and I objdumped
these obj file and found they all had section .debug. I think they
will make building kernel use much more time.why these
obj file compile to debug version?


Best Regards
lin


2008-12-31 06:00:27

by Dave Jones

[permalink] [raw]
Subject: Re: Why kernel make obj file with debug info ?

On Wed, Dec 31, 2008 at 01:30:32PM +0800, pl ice wrote:
> Hi ,
> I found kernel use Kbuild to make obj-file,and I objdumped
> these obj file and found they all had section .debug. I think they
> will make building kernel use much more time.why these
> obj file compile to debug version?

Because you have CONFIG_DEBUG_INFO set.

Dave

--
http://www.codemonkey.org.uk