From: Greg Kroah-Hartman Date: Fri, 26 Feb 2021 12:32:40 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v4.4.259~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00c89009c48bcbc0416203bea28cb460bad7b33a;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: vmlinux.lds.h-add-dwarf-v5-sections.patch --- diff --git a/queue-4.19/series b/queue-4.19/series index 3d3358b1450..5e2133495ef 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -14,3 +14,4 @@ cifs-set-cifs_mount_use_prefix_path-flag-on-setting-.patch scripts-recordmcount.pl-support-big-endian-for-arch-.patch jump_label-lockdep-assert-we-hold-the-hotplug-lock-for-_cpuslocked-operations.patch locking-static_key-fix-false-positive-warnings-on-concurrent-dec-inc.patch +vmlinux.lds.h-add-dwarf-v5-sections.patch diff --git a/queue-4.19/vmlinux.lds.h-add-dwarf-v5-sections.patch b/queue-4.19/vmlinux.lds.h-add-dwarf-v5-sections.patch new file mode 100644 index 00000000000..570fc01dbf3 --- /dev/null +++ b/queue-4.19/vmlinux.lds.h-add-dwarf-v5-sections.patch @@ -0,0 +1,52 @@ +From 3c4fa46b30c551b1df2fb1574a684f68bc22067c Mon Sep 17 00:00:00 2001 +From: Nick Desaulniers +Date: Fri, 5 Feb 2021 12:22:18 -0800 +Subject: vmlinux.lds.h: add DWARF v5 sections + +From: Nick Desaulniers + +commit 3c4fa46b30c551b1df2fb1574a684f68bc22067c upstream. + +We expect toolchains to produce these new debug info sections as part of +DWARF v5. Add explicit placements to prevent the linker warnings from +--orphan-section=warn. + +Compilers may produce such sections with explicit -gdwarf-5, or based on +the implicit default version of DWARF when -g is used via DEBUG_INFO. +This implicit default changes over time, and has changed to DWARF v5 +with GCC 11. + +.debug_sup was mentioned in review, but without compilers producing it +today, let's wait to add it until it becomes necessary. + +Cc: stable@vger.kernel.org +Link: https://bugzilla.redhat.com/show_bug.cgi?id=1922707 +Reported-by: Chris Murphy +Suggested-by: Fangrui Song +Reviewed-by: Nathan Chancellor +Reviewed-by: Mark Wielaard +Tested-by: Sedat Dilek +Signed-off-by: Nick Desaulniers +Signed-off-by: Masahiro Yamada +Signed-off-by: Greg Kroah-Hartman +--- + include/asm-generic/vmlinux.lds.h | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +--- a/include/asm-generic/vmlinux.lds.h ++++ b/include/asm-generic/vmlinux.lds.h +@@ -701,8 +701,13 @@ + /* DWARF 4 */ \ + .debug_types 0 : { *(.debug_types) } \ + /* DWARF 5 */ \ ++ .debug_addr 0 : { *(.debug_addr) } \ ++ .debug_line_str 0 : { *(.debug_line_str) } \ ++ .debug_loclists 0 : { *(.debug_loclists) } \ + .debug_macro 0 : { *(.debug_macro) } \ +- .debug_addr 0 : { *(.debug_addr) } ++ .debug_names 0 : { *(.debug_names) } \ ++ .debug_rnglists 0 : { *(.debug_rnglists) } \ ++ .debug_str_offsets 0 : { *(.debug_str_offsets) } + + /* Stabs debugging sections. */ + #define STABS_DEBUG \