TO: Nathan Chancellor <natechancellor(a)gmail.com>
CC: "Greg Kroah-Hartman" <gregkh(a)linuxfoundation.org>
CC: Michael Ellerman <mpe(a)ellerman.id.au>
CC: Sasha Levin <alexander.levin(a)microsoft.com>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.6.y
head: 5821a5593fa9f28eb6fcc95c35d00454d9bb8624
commit: 6f7eb520c385d6b7b97a136376296ec475b0d48b [991/1124] lib/mpi: Fix building for
powerpc with clang
config: powerpc-randconfig-r021-20200517 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
13d44b2a0c7ef404b13b16644765977cd5310fe2)
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 6f7eb520c385d6b7b97a136376296ec475b0d48b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
> WARNING: vmlinux.o(.text+0x3a1f0): Section mismatch in reference
from the function ppc47x_pin_tlb() to the function .init.text:ppc47x_find_free_bolted()
The function ppc47x_pin_tlb() references
the function __init ppc47x_find_free_bolted().
This is often because ppc47x_pin_tlb lacks a __init
annotation or the annotation of ppc47x_find_free_bolted is wrong.
--
> ld.lld: error: can't create dynamic relocation
R_PPC_ADDR16_HI against symbol: init_thread_union in readonly segment; recompile object
files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in
>> referenced by head_44x.S:109 (arch/powerpc/kernel/head_44x.S:109)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x4E)
--
> ld.lld: error: can't create dynamic relocation
R_PPC_ADDR16_LO against symbol: init_thread_union in readonly segment; recompile object
files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in
>> referenced by head_44x.S:110 (arch/powerpc/kernel/head_44x.S:110)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x52)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: ret_from_except in readonly segment; recompile object files with -fPIC or
pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:260 (arch/powerpc/kernel/head_44x.S:260)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x480)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: handle_page_fault in readonly segment; recompile object files with -fPIC
or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:263 (arch/powerpc/kernel/head_44x.S:263)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x560)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: ret_from_except in readonly segment; recompile object files with -fPIC or
pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:263 (arch/powerpc/kernel/head_44x.S:263)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x564)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: ret_from_except in readonly segment; recompile object files with -fPIC or
pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:266 (arch/powerpc/kernel/head_44x.S:266)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x634)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: ret_from_except_full in readonly segment; recompile object files with
-fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:270 (arch/powerpc/kernel/head_44x.S:270)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x6FC)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: ret_from_except_full in readonly segment; recompile object files with
-fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:273 (arch/powerpc/kernel/head_44x.S:273)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x7BC)
--
> ld.lld: error: can't create dynamic relocation R_PPC_ADDR32
against symbol: ret_from_except_full in readonly segment; recompile object files with
-fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:277 (arch/powerpc/kernel/head_44x.S:277)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x880)
--
> ld.lld: error: can't create dynamic relocation
R_PPC_ADDR16_HA against symbol: global_dbcr0 in readonly segment; recompile object files
with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>> defined in arch/powerpc/built-in.a(kernel/entry_32.o)
>> referenced by head_44x.S:284 (arch/powerpc/kernel/head_44x.S:284)
>> arch/powerpc/kernel/head_44x.o:(.head.text+0x952)
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org