Article 6HW7Y Swollen kernel

Swollen kernel

by
SlackWar
from LinuxQuestions.org on (#6HW7Y)
Some time ago I made a mistake during kernel configuration, and now I can't find the option I switched i unfortunately, I deleted the older config, so I can't do direct comparison.

The problem is: somehow I added BSS to the kernel file, which actually shouldn't be there:

iNote that the BSS segment is not stored in the kernel image because it can be synthesized at boot time by filling a block of memory with zeros.i

Have a look what size reports for two kernels I built:

Code:root@machine/usr/src/linux-4.19.304.old/arch/x86/boot# size bzImage
size: bzImage: warning: ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
text data bss dec hex filename
7971136 0 15236288 23207424 1621e00 bzImage

root@machine/usr/src/linux-6.1.72/arch/x86/boot# size bzImage
text data bss dec hex filename
5979840 0 0 5979840 5b3ec0 bzImageYes, that first kernel is about 2 MB bigger than it used to be (note that warning printed during sizing).

Anyone has an idea, which actually option should be switched off to get back to inormali size? Of course from the thousand options available to search none is clearly described iadd_BSSi or similar way. No iBSSi term anywhere in the config file.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments