From: Alan Modra <amodra@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Nicolas Pitre <nico@fluxnic.net>,
Nicholas Piggin <npiggin@gmail.com>,
Russell King <linux@armlinux.org.uk>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [EXPERIMENTAL, v2] enable thin archives and --gc-sections on ARM
Date: Fri, 17 Mar 2017 19:47:33 +1030 [thread overview]
Message-ID: <20170317091733.GT4983@bubble.grove.modra.org> (raw)
In-Reply-To: <20170315165109.3451216-1-arnd@arndb.de>
On Wed, Mar 15, 2017 at 05:50:00PM +0100, Arnd Bergmann wrote:
> I'm still build testing with an experimental change to enable
> thin architeves and --gc-sections on ARM, which should bring
> multiple benefits
>
> - improve build times
> - allow 'allyesconfig' to succeed without exceeding the
> section size when linking drivers/built-in.o
> - reduce the kernel image size
>
> However, I have now run into a build error binutils commit
> f02cb05 ("Always descend into output section statements in
> lang_do_assignments") in binutils-2.28 and later:
>
> no __ex_table in file: vmlinux
>
> Any idea what's going wrong here?
I presume you checked that section really had disappeared?
> __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
> __start___ex_table = .;
> #ifdef CONFIG_MMU
> - *(__ex_table)
> + KEEP(*(__ex_table))
> #endif
> __stop___ex_table = .;
> }
I think that if CONFIG_MMU is not defined, then ld will remove the
empty section.
--
Alan Modra
Australia Development Lab, IBM
prev parent reply other threads:[~2017-03-17 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-15 16:50 Arnd Bergmann
2017-03-17 9:17 ` Alan Modra [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=20170317091733.GT4983@bubble.grove.modra.org \
--to=amodra@gmail.com \
--cc=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=nico@fluxnic.net \
--cc=npiggin@gmail.com \
/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
all inboxes | Powered by JetHome®