[lkml]   [2021]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4.4 22/38] elfcore: fix building with clang

> From: Arnd Bergmann <>
> 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
default y if MIPS32_O32 || MIPS32_N32
select ELFCORE

in arch/mips. So I believe we'll see problems in that

Best regards,
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2021-02-09 13:55    [W:0.139 / U:2.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site