Re: Why kernel make obj file with debug info ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 30, 2008 at 9:17 AM, pl ice <telent997@xxxxxxxxx> wrote:
> Hi buddy,
>       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?

I check that .debug sections are created whenever you use gcc to
create new object file. I guess you mistakenly assume they were the
sections used  by gdb to debug the binary, not they are not.

If you don't need them, simply use "strip".

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux