From: Rasmus Villemoes <linux@rasmusvillemoes.dk> To: Jessica Yu <jeyu@kernel.org> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>, Matthias Maennich <maennich@google.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Joel Fernandes <joel@joelfernandes.org>, Martijn Coenen <maco@android.com>, Will Deacon <will.deacon@arm.com>, Will Deacon <will@kernel.org>, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] module: avoid code duplication in include/linux/export.h Date: Thu, 31 Oct 2019 12:03:50 +0100 [thread overview] Message-ID: <8eb4f2fd-f34f-606d-8e7d-4b6b6fb86edc@rasmusvillemoes.dk> (raw) In-Reply-To: <20191031101306.GA2177@linux-8ccs> On 31/10/2019 11.13, Jessica Yu wrote: > +++ Rasmus Villemoes [29/10/19 22:11 +0100]: >> On 29/10/2019 20.19, Jessica Yu wrote: >>> Apparently ld does not do the deduplication for SHF_MERGE|SHF_STRINGS >>> sections for relocatable files (ld -r), which kernel modules are. See: >>> >>> https://sourceware.org/ml/binutils/2009-07/msg00291.html >> >> I know <https://patches-gcc.linaro.org/patch/5858/> :) > > That is exactly what we need! :) > >>> But, the strings do get deduplicated for vmlinux. Not sure if we can >>> find a workaround for modules or if the benefit is significant enough >>> if it only for vmlinux. >> >> I think it's definitely worth if, even if it "only" benefits vmlinux for >> now. And I still hope to revisit the --force-section-merge some day, but >> it's very far down my priority list. > > Yeah, I think it's worth having too. > > If you don't have any extra cycles at the moment, and it's far down > your priority list, do you mind if I take a look and maybe try to push > that patch of yours upstream again? Knock yourself out :) IIRC, it did actually work for the powerpc I was targeting, but I don't remember if that was just "readelf/objdump inspection of the ELF files looks reasonable" or if I actually tried loading the modules. I've pushed the patch to https://github.com/Villemoes/binutils-gdb/commit/107b9302858fc5fc1a1690f4a36e1f80808ab421 so you don't have to copy-paste from a browser. I don't know how successful I'd > be, but now since it's especially relevant for namespaces, it's > definitely worth looking at again. Yeah, but even ignoring namespaces, it would be nice to have format strings etc. deduplicated. Please keep me cc'ed on any progress you make. Thanks, Rasmus
next prev parent reply other threads:[~2019-10-31 11:03 UTC|newest] Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-09-27 9:35 [PATCH 0/7] module: various bug-fixes and clean-ups for module namespace Masahiro Yamada 2019-09-27 9:35 ` [PATCH 1/7] modpost: fix broken sym->namespace for external module builds Masahiro Yamada 2019-09-27 9:56 ` Masahiro Yamada 2019-09-27 11:46 ` Matthias Maennich 2019-09-27 9:35 ` [PATCH 2/7] module: swap the order of symbol.namespace Masahiro Yamada 2019-09-27 12:07 ` Matthias Maennich 2019-09-27 9:35 ` [PATCH 3/7] module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict Masahiro Yamada 2019-09-27 12:14 ` Matthias Maennich 2019-09-27 9:36 ` [PATCH 4/7] module: avoid code duplication in include/linux/export.h Masahiro Yamada 2019-09-27 9:58 ` Masahiro Yamada 2019-09-27 11:07 ` Rasmus Villemoes 2019-09-27 12:36 ` Matthias Maennich 2019-10-29 19:19 ` Jessica Yu 2019-10-29 21:11 ` Rasmus Villemoes 2019-10-31 10:13 ` Jessica Yu 2019-10-31 11:03 ` Rasmus Villemoes [this message] 2019-10-31 11:26 ` Jessica Yu 2019-09-27 9:36 ` [PATCH 5/7] kbuild: fix build error of 'make nsdeps' in clean tree Masahiro Yamada 2019-09-27 12:44 ` Matthias Maennich 2019-09-27 9:36 ` [PATCH 6/7] nsdeps: fix hashbang of scripts/nsdeps Masahiro Yamada 2019-09-27 13:10 ` Matthias Maennich 2019-09-27 9:36 ` [PATCH 7/7] nsdeps: make generated patches independent of locale Masahiro Yamada 2019-09-27 13:27 ` Matthias Maennich 2019-09-27 15:42 ` Masahiro Yamada 2019-09-27 18:14 ` Greg Kroah-Hartman 2019-09-29 1:18 ` Masahiro Yamada 2019-09-29 1:30 ` Masahiro Yamada 2019-10-01 11:46 ` Matthias Maennich 2019-09-29 10:14 ` Greg Kroah-Hartman 2019-09-27 13:41 ` [PATCH 0/7] module: various bug-fixes and clean-ups for module namespace Matthias Maennich 2019-09-27 15:43 ` Masahiro Yamada 2019-10-02 18:57 ` Jessica Yu 2019-10-02 20:43 ` Matthias Maennich 2019-10-03 1:26 ` Masahiro Yamada 2019-10-03 8:03 ` Masahiro Yamada
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=8eb4f2fd-f34f-606d-8e7d-4b6b6fb86edc@rasmusvillemoes.dk \ --to=linux@rasmusvillemoes.dk \ --cc=gregkh@linuxfoundation.org \ --cc=jeyu@kernel.org \ --cc=joel@joelfernandes.org \ --cc=linux-kernel@vger.kernel.org \ --cc=maco@android.com \ --cc=maennich@google.com \ --cc=will.deacon@arm.com \ --cc=will@kernel.org \ --cc=yamada.masahiro@socionext.com \ --subject='Re: [PATCH 4/7] module: avoid code duplication in include/linux/export.h' \ /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
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).