# git rev-parse -q --verify 26a7f2efa8557bc235ef632d477b1aef6612bbc8^{commit} 26a7f2efa8557bc235ef632d477b1aef6612bbc8 already have revision, skipping fetch # git checkout -q -f -B kisskb 26a7f2efa8557bc235ef632d477b1aef6612bbc8 # git clean -qxdf # git log -1 commit 26a7f2efa8557bc235ef632d477b1aef6612bbc8 Author: Segher Boessenkool Date: Wed Feb 28 17:02:49 2018 -0800 powerpc: Keep const vars out of writable .sdata Newer gcc will support "-mno-readonly-in-sdata"[1], which makes sure that the optimization on PPC32 for variables getting moved into the .sdata section will not apply to const variables (which must be in .rodata). This was originally noticed in mm/rodata_test.c when rodata_test_data was not static: c0695034 g O .data 00000004 rodata_test_data After this patch with an updated compiler, this is correctly in .rodata. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82411 Reported-by: Christophe Leroy Signed-off-by: Segher Boessenkool Signed-off-by: Kees Cook Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 26a7f2efa8557bc235ef632d477b1aef6612bbc8 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, 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] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # 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' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb3cf24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5539789 Bytes = 5409.95 kB = 5.28 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563457 Bytes = 5433.06 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563377 Bytes = 5432.99 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563345 Bytes = 5432.95 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563441 Bytes = 5433.05 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563555 Bytes = 5433.16 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563347 Bytes = 5432.96 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5564386 Bytes = 5433.97 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563481 Bytes = 5433.09 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:35 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5564450 Bytes = 5434.03 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d6dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563443 Bytes = 5433.05 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563442 Bytes = 5433.05 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563210 Bytes = 5432.82 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563418 Bytes = 5433.03 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563425 Bytes = 5433.03 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 13:02:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563565 Bytes = 5433.17 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 # Build took: 0:03:10.809674