From: Dave Martin <Dave.Martin@arm.com>
To: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Michal Marek <mmarek@suse.cz>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
Arnd Bergmann <arnd@arndb.de>,
linux-kbuild@vger.kernel.org,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o
Date: Wed, 1 Apr 2015 10:04:57 +0100 [thread overview]
Message-ID: <20150401090449.GA3602@e103592.cambridge.arm.com> (raw)
In-Reply-To: <alpine.LFD.2.11.1503311429240.25806@knanqh.ubzr>
On Tue, Mar 31, 2015 at 02:42:24PM -0400, Nicolas Pitre wrote:
> On Tue, 31 Mar 2015, Dave Martin wrote:
[...]
> > We'd need to avoid pruning needed code that has no explicit caller,
> > and functions that are part of the kernel/module ABI but not used
> > within vmlinux.
>
> Those are usually located in special sections, like the initcall table,
> the CPU entry table, etc. The linker allows for those sections to be
> marked with KEEP() not to prune them.
True. See what breaks, I guess.
> > The GCC docs suggest that -ffunction-sections may impact performance
> > and/or increase code size, but I don't know by how much. Maybe it
> > interferes with inling.
>
> It doesn't interfere with inlining. However it impose a section
> alignment on every function. That still can be overriden though. Also, I
> suppose that gcc may not assume that calls to a global function that
> happens to be located in the same C file will be close by anymore,
> however I don't see this having any impact on ARM code generation.
More veneers may be introduced during linking, and it's likely that
cache/TLB locality would be affected, but I've no idea whether the
impact would be significant.
Cheers
---Dave
prev parent reply other threads:[~2015-04-01 9:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-30 11:49 [RFC PATCH 0/2] ARM large kernels Ard Biesheuvel
2015-03-30 11:49 ` [RFC PATCH 1/2] Kbuild: kallsyms: ignore veneers emitted by the ARM linker Ard Biesheuvel
2015-03-30 12:11 ` Michal Marek
2015-03-30 11:49 ` [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o Ard Biesheuvel
2015-03-30 12:38 ` Michal Marek
2015-03-30 12:54 ` Ard Biesheuvel
2015-03-30 13:26 ` Russell King - ARM Linux
2015-03-30 13:31 ` Ard Biesheuvel
2015-03-30 14:13 ` Michal Marek
2015-03-30 17:04 ` Ard Biesheuvel
2015-03-31 15:22 ` Nicolas Pitre
2015-03-31 16:27 ` Dave Martin
2015-03-31 16:34 ` Russell King - ARM Linux
2015-03-31 18:46 ` Nicolas Pitre
2015-03-31 18:42 ` Nicolas Pitre
2015-04-01 9:04 ` Dave Martin [this message]
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=20150401090449.GA3602@e103592.cambridge.arm.com \
--to=dave.martin@arm.com \
--cc=ard.biesheuvel@linaro.org \
--cc=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mmarek@suse.cz \
--cc=nicolas.pitre@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).