# git rev-parse -q --verify 3ce47d95b7346dcafd9bed3556a8d072cb2b8571^{commit} 3ce47d95b7346dcafd9bed3556a8d072cb2b8571 already have revision, skipping fetch # git checkout -q -f -B kisskb 3ce47d95b7346dcafd9bed3556a8d072cb2b8571 # git clean -qxdf # < git log -1 # commit 3ce47d95b7346dcafd9bed3556a8d072cb2b8571 # Author: Nathan Chancellor # Date: Mon Jan 4 13:59:53 2021 -0700 # # powerpc: Handle .text.{hot,unlikely}.* in linker script # # Commit eff8728fe698 ("vmlinux.lds.h: Add PGO and AutoFDO input # sections") added ".text.unlikely.*" and ".text.hot.*" due to an LLVM # change [1]. # # After another LLVM change [2], these sections are seen in some PowerPC # builds, where there is a orphan section warning then build failure: # # $ make -skj"$(nproc)" \ # ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- LLVM=1 O=out \ # distclean powernv_defconfig zImage.epapr # ld.lld: warning: kernel/built-in.a(panic.o):(.text.unlikely.) is being placed in '.text.unlikely.' # ... # ld.lld: warning: address (0xc000000000009314) of section .text is not a multiple of alignment (256) # ... # ERROR: start_text address is c000000000009400, should be c000000000008000 # ERROR: try to enable LD_HEAD_STUB_CATCH config option # ERROR: see comments in arch/powerpc/tools/head_check.sh # ... # # Explicitly handle these sections like in the main linker script so # there is no more build failure. # # [1]: https://reviews.llvm.org/D79600 # [2]: https://reviews.llvm.org/D92493 # # Fixes: 83a092cf95f2 ("powerpc: Link warning for orphan sections") # Cc: stable@vger.kernel.org # Signed-off-by: Nathan Chancellor # Signed-off-by: Michael Ellerman # Link: https://github.com/ClangBuiltLinux/linux/issues/1218 # Link: https://lore.kernel.org/r/20210104205952.1399409-1-natechancellor@gmail.com # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 3ce47d95b7346dcafd9bed3556a8d072cb2b8571 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4185:warning: override: reassigning to symbol PPC_E500MC .config:4186:warning: override: reassigning to symbol VIRTUALIZATION # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) | ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' 139 | if (IS_ERR_VALUE(fep->ring_mem_addr)) | ^~~~~~~~~~~~ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf38ca4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf28578) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7059058 Bytes = 6893.61 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7025596 Bytes = 6860.93 KiB = 6.70 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060238 Bytes = 6894.76 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060138 Bytes = 6894.67 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7059243 Bytes = 6893.79 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7058668 Bytes = 6893.23 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7059819 Bytes = 6894.35 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060132 Bytes = 6894.66 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060143 Bytes = 6894.67 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7058665 Bytes = 6893.23 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7058718 Bytes = 6893.28 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060598 Bytes = 6895.12 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060695 Bytes = 6895.21 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060141 Bytes = 6894.67 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7059784 Bytes = 6894.32 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.11.0-rc2-g3ce47d95b734 Created: Wed Jan 6 23:00:57 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7060842 Bytes = 6895.35 KiB = 6.73 MiB Load Address: 01000000 Entry Point: 010002cc Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc9 # Build took: 0:02:56.643715