# git rev-parse -q --verify c93722674d73b5cf65c66426bc6b7e0051c64ef9^{commit} c93722674d73b5cf65c66426bc6b7e0051c64ef9 already have revision, skipping fetch # git checkout -q -f -B kisskb c93722674d73b5cf65c66426bc6b7e0051c64ef9 # git clean -qxdf # < git log -1 # commit c93722674d73b5cf65c66426bc6b7e0051c64ef9 # Author: Joel Stanley # Date: Tue Dec 11 08:58:54 2018 +1030 # # powerpc: Discard .branch_lt section # # When building a 32 bit powerpc kernel with Binutils 2.31.1 this warning # is emitted: # # powerpc-linux-gnu-ld: warning: orphan section `.branch_lt' from # `arch/powerpc/kernel/head_44x.o' being placed in section `.branch_lt' # # As of binutils commit 2d7ad24e8726 ("Support PLT16 relocs against local # symbols")[1], 32 bit targets can produce .branch_lt sections in their # output. # # These sections should be empty for the kernel build so discard them for # both PPC64 and PPC32. # # [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=2d7ad24e8726ba4c45c9e67be08223a146a837ce # Signed-off-by: Joel Stanley # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 c93722674d73b5cf65c66426bc6b7e0051c64ef9 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/arch/powerpc/kernel/ptrace.c:24: In function 'user_regset_copyin', inlined from 'vr_set' at /kisskb/src/arch/powerpc/kernel/ptrace.c:619:9: /kisskb/src/include/linux/regset.h:295:4: error: 'memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union ' [-Werror=array-bounds] memcpy(data, *kbuf, copy); ^~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/kernel/ptrace.c: In function 'vr_set': /kisskb/src/arch/powerpc/kernel/ptrace.c:614:5: note: 'vrsave' declared here } vrsave; ^~~~~~ In file included from /kisskb/src/arch/powerpc/kernel/ptrace.c:24: In function 'user_regset_copyout', inlined from 'vr_get' at /kisskb/src/arch/powerpc/kernel/ptrace.c:572:9: /kisskb/src/include/linux/regset.h:270:4: error: 'memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union ' [-Werror=array-bounds] memcpy(*kbuf, data, copy); ^~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/kernel/ptrace.c: In function 'vr_get': /kisskb/src/arch/powerpc/kernel/ptrace.c:567:5: note: 'vrsave' declared here } vrsave; ^~~~~~ cc1: all warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:293: arch/powerpc/kernel/ptrace.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:518: arch/powerpc/kernel] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1060: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 # Build took: 0:02:23.015679