[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210209125252.GA23392@duo.ucw.cz>
Date: Tue, 9 Feb 2021 13:52:52 +0100
From: Pavel Machek <pavel@...x.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Arnd Bergmann <arnd@...db.de>,
Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Barret Rhoden <brho@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 4.4 22/38] elfcore: fix building with clang
Hi!
> From: Arnd Bergmann <arnd@...db.de>
>
> commit 6e7b64b9dd6d96537d816ea07ec26b7dedd397b9 upstream.
>
> kernel/elfcore.c only contains weak symbols, which triggers a bug with
> clang in combination with recordmcount:
>
> Cannot find symbol for section 2: .text.
> kernel/elfcore.o: failed
>
> Move the empty stubs into linux/elfcore.h as inline functions. As only
> two architectures use these, just use the architecture specific Kconfig
> symbols to key off the declaration.
4.4 has this:
config BINFMT_ELF32
bool
default y if MIPS32_O32 || MIPS32_N32
select ELFCORE
in arch/mips. So I believe we'll see problems in that
configuration...?
Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists