Skip to content

Commit

Permalink
parisc: Fix build of compressed kernel even with debug enabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Sven Schnelle <[email protected]>
Cc: [email protected] # v4.14+
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
hdeller committed Aug 1, 2019
1 parent 740f05f commit 3fe6c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/parisc/boot/compressed/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ SECTIONS
*(.rodata.compressed)
}

/* bootloader code and data starts behind area of extracted kernel */
. = (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START);
/* bootloader code and data starts at least behind area of extracted kernel */
. = MAX(ABSOLUTE(.), (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START));

/* align on next page boundary */
. = ALIGN(4096);
Expand Down

0 comments on commit 3fe6c87

Please sign in to comment.