# git rev-parse -q --verify 9fa62ccf07a78e8ca3d8a3ce59276f4ef6660e58^{commit} 9fa62ccf07a78e8ca3d8a3ce59276f4ef6660e58 already have revision, skipping fetch # git checkout -q -f -B kisskb 9fa62ccf07a78e8ca3d8a3ce59276f4ef6660e58 # git clean -qxdf # < git log -1 # commit 9fa62ccf07a78e8ca3d8a3ce59276f4ef6660e58 # Author: Alexey Kardashevskiy # Date: Mon Mar 21 18:10:26 2022 +1100 # # powerpc/boot: Stop using RELACOUNT # # So far the RELACOUNT tag from the ELF header was containing the exact # number of R_PPC_RELATIVE/R_PPC64_RELATIVE relocations. However the LLVM's # recent change [1] make it equal-or-less than the actual number which # makes it useless. # # This replaces RELACOUNT in zImage loader with a pair of RELASZ and RELAENT. # The vmlinux relocation code is fixed in [2]. # # To make it more future proof, this walks through the entire .rela.dyn # section instead of assuming that the section is sorter by a relocation # type. Unlike [1], this does not add unaligned UADDR/UADDR64 relocations # as in hardly possible to see those in arch-specific zImage. # # [1] https://github.com/llvm/llvm-project/commit/da0e5b885b25cf4 # [2] https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=d799769188529a # # Signed-off-by: Alexey Kardashevskiy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20220321071026.918262-1-aik@ozlabs.ru # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 9fa62ccf07a78e8ca3d8a3ce59276f4ef6660e58 # < make -s -j 32 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # < make -s -j 32 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 32 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 32 ARCH=x86 O=/kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- vmlinux.o: warning: objtool: __do_fast_syscall_32()+0xa: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: do_syscall_64()+0x9: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: do_int80_syscall_32()+0x9: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_general_protection()+0x22: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: fixup_bad_iret()+0x20: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_start()+0x5c: call to __kasan_check_write() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_gather_info()+0x5f: call to v8086_mode.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_read_aux()+0x8a: call to mca_msr_reg() leaves .noinstr.text section vmlinux.o: warning: objtool: do_machine_check()+0x27: call to stackleak_track_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_severity_amd.constprop.0()+0xca: call to mce_severity_amd_smca() leaves .noinstr.text section vmlinux.o: warning: objtool: .text+0x5342e: call to stackleak_erase() leaves .noinstr.text section vmlinux.o: warning: objtool: .entry.text+0x143: call to stackleak_erase() leaves .noinstr.text section vmlinux.o: warning: objtool: .entry.text+0x10eb: call to stackleak_erase() leaves .noinstr.text section vmlinux.o: warning: objtool: .entry.text+0x17f9: call to stackleak_erase() leaves .noinstr.text section Completed OK # rm -rf /kisskb/build/powerpc-next_x86-allmodconfig_x86_64-gcc11 # Build took: 0:37:49.095651