[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yd2nJZRtc3OjPb0w@bombadil.infradead.org>
Date: Tue, 11 Jan 2022 07:49:57 -0800
From: Luis Chamberlain <mcgrof@...nel.org>
To: Vimal Agrawal <avimalin@...il.com>
Cc: Christoph Hellwig <hch@...radead.org>,
Vimal Agrawal <vimal.Agrawal@...hos.com>,
Masahiro Yamada <masahiroy@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Jan Beulich <JBeulich@...e.com>, Jeff Mahoney <jeffm@...e.com>,
Sam Ravnborg <sam@...nborg.org>, linux-kbuild@...r.kernel.org,
jeyu@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] kernel/module.c: heuristic enhancement when
INSTALL_MOD_STRIP= "--strip-unneeded" is used
On Sat, Dec 25, 2021 at 06:38:02AM +0530, Vimal Agrawal wrote:
> On Fri, Dec 24, 2021 at 12:17 PM Christoph Hellwig <hch@...radead.org> wrote:
> >
> > I don't think we can support passing arbitrary linker options and
> > expects things to work. If we want to support --strip-unneeded
> > it needs a good rationale and be added as a direct config option.
> INSTALL_MOD_STRIP was provided to give flexibility for providing
> strippping options.
Yes but the point here is the heuristic you are adding for
when "--strip-unneeded" is used is now *always* being used and
we have no way of knowing this. So I'd agree with Christoph that
if we want to support this it might make sense to make a kconfig
option for enabling "--strip-unneeded" and then another for this
heuristic.
You may want to work on top of Aaron's patches as that would make
adding new kconfig entries for modules much cleaner:
https://lkml.kernel.org/r/20220106234319.2067842-1-atomlin@redhat.com
I hope to review those this week, so I might have a tree you can
work off on by the end of this or next week.
Luis
Powered by blists - more mailing lists