Huge difference in build sizes

Anders Darander anders.darander at gmail.com
Wed Dec 3 01:51:10 EST 2014


On Wed Dec 03 2014 at 7:18:01 AM Raghavendra <arrao at cdac.in> wrote:

> On Wednesday 03 December 2014 09:45 AM, Greg KH wrote:
> > On Wed, Dec 03, 2014 at 09:26:34AM +0530, Raghavendra wrote:
> >> Hello Greg,
> >>
> >> Thank you for the reply.
> >>
> >> On Tuesday 02 December 2014 11:46 PM, Greg KH wrote:
> >>> You have not "stripped" the debug symbols from the kernel you built,
> >>> which is what Ubuntu does as part of their build process.  I suggest
> >>> turning off that kernel configuration option, as it's probably not
> >>> needed for your development.
> >> If you are referring to the option "CONFIG_DEBUG_INFO", then it is said
> to
> >> 'y' in both the kernel's configuration files.
> >> Is there any other config. option or compiler flags that I need to look
> for?
> > That's a good one to turn off, start with that and see what happens.
> >
> Yeah, I turned off the config option and compared the sizes. Now, both
> result in the same build size. Thanks for the suggestion Greg. Still, my
> concern is that the distro's build is generating a small build size in
> spite of having the option 'CONFIG_DEBUG_INFO' set to 'y'. Any thoughts?
>

 Well, the distribution is for sure building the debug info. But later on,
they strip out the debug info and creates a 2nd kernel package (and 2nd
packages for all modules) with the debug info. Thus, the regular kernel
image and modules appears as stripped ones on your system.

Cheers,
Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141203/34160eb1/attachment-0001.html 


More information about the Kernelnewbies mailing list