[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YOcHp2+4e9S6lLH8@p200300cbcf044300404ca642de146c7c.dip0.t-ipconnect.de>
Date: Thu, 8 Jul 2021 16:11:51 +0200
From: Jessica Yu <jeyu@...nel.org>
To: Reiner Huober <reiner.huober@...ia.com>
Cc: Kees Cook <keescook@...omium.org>,
Sami Tolvanen <samitolvanen@...gle.com>,
Miroslav Benes <mbenes@...e.cz>,
Emil Velikov <emil.l.velikov@...il.com>,
Sean Christopherson <seanjc@...gle.com>,
Masahiro Yamada <masahiroy@...nel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] module: combine constructors in module linker script
+++ Reiner Huober [06/07/21 15:02 +0200]:
>The constructor code for modules must be aware of init code inside
>different sections.
>
>Newer GCC compilers write constructors in more than one section,
>e.g. ".ctors.65435". These must be combined into a single
>".ctors" section. In the module loader, only the ".ctors" section
>is searched and the constructors therein are initialized, when
>CONFIG_CONSTRUCTORS=y is set. Other constructors are ignored.
>
>This change combines all ".ctors.*" and the ".ctors" section, if any,
>in <module>.ko into a single ."ctors" section.
>
>For code coverage in GCC, this is necessary to show the
>code coverage for modules, since code coverage uses such
>constructors when initializing a module in newer version of GCC.
>
>Signed-off-by: Reiner Huober <reiner.huober@...ia.com>
Thanks, I'll queue this up after the merge window is over.
Jessica
Powered by blists - more mailing lists