diff options
author | Helge Deller <deller@gmx.de> | 2019-08-01 07:33:39 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-08-01 08:17:53 -0400 |
commit | 3fe6c873af2f2247544debdbe51ec29f690a2ccf (patch) | |
tree | 4ece9bc2e084cf63f36ace9e190b62d0a547837b /arch/parisc | |
parent | 740f05f30a8c49ec63668055d28feedd906d3c50 (diff) |
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>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/boot/compressed/vmlinux.lds.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/boot/compressed/vmlinux.lds.S b/arch/parisc/boot/compressed/vmlinux.lds.S index bfd7872739a3..2ac3a643f2eb 100644 --- a/arch/parisc/boot/compressed/vmlinux.lds.S +++ b/arch/parisc/boot/compressed/vmlinux.lds.S | |||
@@ -48,8 +48,8 @@ SECTIONS | |||
48 | *(.rodata.compressed) | 48 | *(.rodata.compressed) |
49 | } | 49 | } |
50 | 50 | ||
51 | /* bootloader code and data starts behind area of extracted kernel */ | 51 | /* bootloader code and data starts at least behind area of extracted kernel */ |
52 | . = (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START); | 52 | . = MAX(ABSOLUTE(.), (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START)); |
53 | 53 | ||
54 | /* align on next page boundary */ | 54 | /* align on next page boundary */ |
55 | . = ALIGN(4096); | 55 | . = ALIGN(4096); |