diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-05-21 10:02:22 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-05-21 10:02:22 +0000 |
commit | 999631e8cf5f3916d0cb2e0d36905cc7dbef8a63 (patch) | |
tree | 743fd56f2630ca85177aae15896265e56a52496b /chapter08 | |
parent | e14f0cbf8831bb81c237a5ee38bd82482183ef73 (diff) |
Merge trunk r11852
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11853 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/kernel.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 0033028cf..5bacd11a1 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -54,6 +54,16 @@ kernel compilation. Do not rely on the source tree being clean after un-tarring.</para> + <!-- The following paragraph and sed should be only necessary on the 5.6 + series, but check when 5.7 is out. --> + <para>When using <envar>CONFIG_STACKPROTECTOR_STRONG=y</envar>, and + compiling with GCC 10 and later, the default optimization is too + aggressive, and generates a kernel panic when booting. This can be + fixed with:</para> + +<screen><userinput remap="pre">sed -e '/cpu_startup/a asm("");' \ + -i arch/x86/{kernel/smpboot.c,xen/smp_pv.c}</userinput></screen> + <!-- Support for compiling a keymap into the kernel is deliberately removed --> <para>Configure the kernel via a menu-driven interface. For general |