[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20201204163459.7e95c5a1b24cf5c84f779766@linux-foundation.org>
Date: Fri, 4 Dec 2020 16:34:59 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Arnd Bergmann <arnd@...db.de>, Barret Rhoden <brho@...gle.com>,
linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH 1/2] initramfs: fix clang build failure
On Fri, 4 Dec 2020 17:57:33 +0100 Arnd Bergmann <arnd@...nel.org> wrote:
> There is only one function in init/initramfs.c that is in the .text
> section, and it is marked __weak. When building with clang-12 and
> the integrated assembler, this leads to a bug with recordmcount:
>
> ./scripts/recordmcount "init/initramfs.o"
> Cannot find symbol for section 2: .text.
> init/initramfs.o: failed
That looks like recordmcount is being silly?
> I'm not quite sure what exactly goes wrong, but I notice that this
> function is only ever called from an __init function, and normally
> inlined. Marking it __init as well is clearly correct and it
> leads to recordmcount no longer complaining.
That works, too.
Powered by blists - more mailing lists