parisc: Fix build of compressed kernel even with debug enabled

With debug info enabled (CONFIG_DEBUG_INFO=y) the resulting vmlinux may get
that huge that we need to increase the start addresss for the decompression
text section otherwise one will face a linker error.

Reported-by: Sven Schnelle <svens@stackframe.org>
Tested-by: Sven Schnelle <svens@stackframe.org>
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Helge Deller 2019-08-01 13:33:39 +02:00
parent 740f05f30a
commit 3fe6c873af
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ SECTIONS
*(.rodata.compressed) *(.rodata.compressed)
} }
/* bootloader code and data starts behind area of extracted kernel */ /* bootloader code and data starts at least behind area of extracted kernel */
. = (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START); . = MAX(ABSOLUTE(.), (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START));
/* align on next page boundary */ /* align on next page boundary */
. = ALIGN(4096); . = ALIGN(4096);