# 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-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 26a7f2efa8557bc235ef632d477b1aef6612bbc8 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc44x_defconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec': /kisskb/src/net/bridge/br_netlink.c:635:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1816:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1726:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:251:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:231:19: note: 'i' was declared here INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5195b0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:18 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2592431 Bytes = 2531.67 kB = 2.47 MB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:19 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2616979 Bytes = 2555.64 kB = 2.50 MB Load Address: 00600000 Entry Point: 006000a4 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:19 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2616781 Bytes = 2555.45 kB = 2.50 MB Load Address: 00600000 Entry Point: 0060110c INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:19 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2616631 Bytes = 2555.30 kB = 2.50 MB Load Address: 00600000 Entry Point: 00600178 INFO: Uncompressed kernel (size 0x529c5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:19 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2616744 Bytes = 2555.41 kB = 2.50 MB Load Address: 00600000 Entry Point: 00601114 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:19 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2617124 Bytes = 2555.79 kB = 2.50 MB Load Address: 00600000 Entry Point: 0060110c Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:20 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2617016 Bytes = 2555.68 kB = 2.50 MB Load Address: 00600000 Entry Point: 00601104 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:20 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2617162 Bytes = 2555.82 kB = 2.50 MB Load Address: 00600000 Entry Point: 006010f4 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:20 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2616694 Bytes = 2555.37 kB = 2.50 MB Load Address: 00600000 Entry Point: 00601118 Image Name: Linux-4.16.0-rc3-g26a7f2e Created: Mon Mar 5 11:55:20 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2616663 Bytes = 2555.33 kB = 2.50 MB Load Address: 00600000 Entry Point: 00601100 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc44x_defconfig_powerpc # Build took: 0:01:01.736523