]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/boot/compressed: Add missing debugging sections to output
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:43:09 +0000 (12:43 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 08:03:18 +0000 (10:03 +0200)
Include the missing DWARF and STABS sections in the compressed image,
when they are present.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200821194310.3089815-29-keescook@chromium.org
arch/x86/boot/compressed/vmlinux.lds.S

index 02f6feb0e55be0cc32dbc03c9cca5c7486ad088c..112b2375d021bb190fb6491bf05a41f52c2ea4fe 100644 (file)
@@ -69,6 +69,8 @@ SECTIONS
        . = ALIGN(PAGE_SIZE);   /* keep ZO size page aligned */
        _end = .;
 
+       STABS_DEBUG
+       DWARF_DEBUG
        ELF_DETAILS
 
        DISCARDS