Re: [PATCH] x86: fix .bss with -fdata-sections

2019-04-15 Thread Kees Cook
On Mon, Apr 15, 2019 at 11:50 AM Sami Tolvanen wrote: > > With LD_DEAD_CODE_DATA_ELIMINATION, we compile the kernel with > -fdata-sections, which also splits the .bss section. Use the > common BSS_MAIN macro in the linker script to properly merge all > the generated sections. > > Signed-off-by: Sa

Re: [PATCH] x86: fix .bss with -fdata-sections

2019-04-15 Thread Nick Desaulniers
On Mon, Apr 15, 2019 at 9:50 AM Sami Tolvanen wrote: > > With LD_DEAD_CODE_DATA_ELIMINATION, we compile the kernel with > -fdata-sections, which also splits the .bss section. Use the > common BSS_MAIN macro in the linker script to properly merge all > the generated sections. > > Signed-off-by: Sam