Hi Ben, On 19.09.2016 20:56, Ben Hutchings wrote: > On Mon, 2016-09-19 at 20:50 +0200, Helge Deller wrote: >> On 19.09.2016 19:41, Ben Hutchings wrote: >>> On Mon, 2016-09-12 at 20:28 +0100, Ben Hutchings wrote: >>>> On Mon, 2016-09-12 at 18:17 +0200, Helge Deller wrote: >>>>> >>>>> So, can you please deactivate CONFIG_FTRACE completely for 32- and >>>>> 64bit hppa configs? >>>>> Is it sufficient to add "CONFIG_FTRACE=n" to >>>>> debian/config/hppa/config ? >>>> >>>> Done.
Argh - this didn't fixed the size issues on hppa. I was under the wrong assumption, that CONFIG_FTRACE (which was implemented in kernel 4.7 for the first time) was the culprit which increased the kernel size. This assumption was wrong. The attached patch finally fixes the issue. It re-enables the CONFIG_FTRACE option (which is set by your upper config files), and disables CONFIG_DEBUG_INFO which was now suddenly enabled by the debian kernel 4.7 (it wasn't in 4.6!). I enabled CONFIG_DEBUG_RODATA to write-protect kernel memory as well. The main problem was, that the generated dwarf debug info increases the kernel vmlinux image from 17MB to 97MB in disk size. I've compile- and run-tested the patch and built a +b1 kernel. Can you apply the attached patch on top of current git? I can commit it myself as well if you like. Thanks! Helge
diff -up ./config/hppa/config.org ./config/hppa/config --- ./config/hppa/config.org 2016-09-21 21:34:30.894455256 +0200 +++ ./config/hppa/config 2016-09-22 20:48:48.314036351 +0200 @@ -571,15 +571,10 @@ CONFIG_SGETMASK_SYSCALL=y CONFIG_SYSFS_SYSCALL=y ## -## file: kernel/trace/Kconfig -## -#. As of 4.7 this has a huge size cost; see #837588 -# CONFIG_FTRACE is not set - -## ## file: lib/Kconfig.debug ## CONFIG_DEBUG_STACKOVERFLOW=y +CONFIG_DEBUG_RODATA=y # CONFIG_LOCKUP_DETECTOR is not set ## diff -up ./config/hppa/defines.org ./config/hppa/defines --- ./config/hppa/defines.org 2016-09-22 09:38:55.695723334 +0200 +++ ./config/hppa/defines 2016-09-22 09:38:36.771730760 +0200 @@ -6,6 +6,7 @@ kernel-arch: parisc image-file: vmlinux # linux-signed only works for architectures in the main archive signed-modules: false +debug-info: false [image] suggests: palo
signature.asc
Description: OpenPGP digital signature