public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* .exit.text section in vmlinux ?
@ 2014-10-21 21:19 Peter Hüwe
  2014-10-21 23:35 ` josh
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Hüwe @ 2014-10-21 21:19 UTC (permalink / raw)
  To: linux-kernel, Josh Triplett

Hi,

as far as I remember everything marked with __exit or __exit_data will only be 
used/called when unloading a module, and gets moved to the .exit.text or 
.exit.data sections.

Why are these sections present in the vmlinux/vmlinux.bin/bzImage and not 
dropped by the linker or at least objdump? 
This code will never be called for everything compiled in - in an allyesconfig 
build these sections account for ~80kb of code.

Is there something I'm missing here, or can we add "--remove-section 
.exit.data --remove-section .exit.text" to the OBJCOPYFLAGS for vmlinux?


Thanks,
Peter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-22  0:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 21:19 .exit.text section in vmlinux ? Peter Hüwe
2014-10-21 23:35 ` josh
2014-10-21 23:56   ` Stephen Boyd
2014-10-22  0:10     ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox