OSDN Git Service

arm/build: Add missing sections
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2020 19:42:58 +0000 (12:42 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Sep 2020 08:03:18 +0000 (10:03 +0200)
Add missing text stub sections .vfp11_veneer and .v4_bx, as well as
missing DWARF sections, when present in the build.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Russell King <linux@armlinux.org.uk>
Link: https://lore.kernel.org/r/20200821194310.3089815-18-keescook@chromium.org
arch/arm/include/asm/vmlinux.lds.h
arch/arm/kernel/vmlinux-xip.lds.S
arch/arm/kernel/vmlinux.lds.S

index c4af518..6624dd9 100644 (file)
@@ -59,7 +59,9 @@
 #define ARM_STUBS_TEXT                                                 \
                *(.gnu.warning)                                         \
                *(.glue_7)                                              \
-               *(.glue_7t)
+               *(.glue_7t)                                             \
+               *(.vfp11_veneer)                                        \
+               *(.v4_bx)
 
 #define ARM_TEXT                                                       \
                IDMAP_TEXT                                              \
index 57fcbf5..11ffa79 100644 (file)
@@ -150,6 +150,7 @@ SECTIONS
        _end = .;
 
        STABS_DEBUG
+       DWARF_DEBUG
        ARM_DETAILS
 }
 
index 1d3d3b5..dc672fe 100644 (file)
@@ -149,6 +149,7 @@ SECTIONS
        _end = .;
 
        STABS_DEBUG
+       DWARF_DEBUG
        ARM_DETAILS
 }