From: "Peter Hüwe" <PeterHuewe@gmx.de>
To: linux-kernel@vger.kernel.org, Josh Triplett <josh@joshtriplett.org>
Subject: .exit.text section in vmlinux ?
Date: Tue, 21 Oct 2014 23:19:01 +0200 [thread overview]
Message-ID: <201410212319.20340.PeterHuewe@gmx.de> (raw)
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
next reply other threads:[~2014-10-21 21:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 21:19 Peter Hüwe [this message]
2014-10-21 23:35 ` .exit.text section in vmlinux ? josh
2014-10-21 23:56 ` Stephen Boyd
2014-10-22 0:10 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201410212319.20340.PeterHuewe@gmx.de \
--to=peterhuewe@gmx.de \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.