[ardb:efi-decompressor 14/15] drivers/firmware/efi/libstub/zboot-header.S:15: Error: cannot represent BFD_RELOC_16 relocation in object file
From: kernel test robot
Date: Mon May 02 2022 - 11:30:55 EST
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git efi-decompressor
head: 72c24d14cadb10e6debf20a1c82657095ebb09dc
commit: b04842cf015d233b0ab70338b131eccca070cc86 [14/15] efi: stub: implement generic EFI zboot
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220502/202205022351.rnmZ1h8i-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=b04842cf015d233b0ab70338b131eccca070cc86
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb efi-decompressor
git checkout b04842cf015d233b0ab70338b131eccca070cc86
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
drivers/firmware/efi/libstub/zboot-header.S: Assembler messages:
>> drivers/firmware/efi/libstub/zboot-header.S:15: Error: cannot represent BFD_RELOC_16 relocation in object file
vim +15 drivers/firmware/efi/libstub/zboot-header.S
4
5 .section ".head", "a"
6 .globl __efistub_efi_zboot_header
7 __efistub_efi_zboot_header:
8 .Ldoshdr:
9 .long MZ_MAGIC
10 .org .Ldoshdr + 0x3c
11 .long .Lpehdr - .Ldoshdr
12
13 .Lpehdr:
14 .long PE_MAGIC
> 15 .short pe_machine_type
16 .short .Lsection_count
17 .long 0
18 .long 0
19 .long 0
20 .short .Lsection_table - .Loptional_header
21 .short IMAGE_FILE_DEBUG_STRIPPED | \
22 IMAGE_FILE_EXECUTABLE_IMAGE | \
23 IMAGE_FILE_LINE_NUMS_STRIPPED
24
--
0-DAY CI Kernel Test Service
https://01.org/lkp