Skip to content

Commit 512dd2e

Browse files
keesingomolnar
authored andcommitted
arm/build: Add missing sections
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
1 parent 3b14aef commit 512dd2e

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

arch/arm/include/asm/vmlinux.lds.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
#define ARM_STUBS_TEXT \
6060
*(.gnu.warning) \
6161
*(.glue_7) \
62-
*(.glue_7t)
62+
*(.glue_7t) \
63+
*(.vfp11_veneer) \
64+
*(.v4_bx)
6365

6466
#define ARM_TEXT \
6567
IDMAP_TEXT \

arch/arm/kernel/vmlinux-xip.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ SECTIONS
150150
_end = .;
151151

152152
STABS_DEBUG
153+
DWARF_DEBUG
153154
ARM_DETAILS
154155
}
155156

arch/arm/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ SECTIONS
149149
_end = .;
150150

151151
STABS_DEBUG
152+
DWARF_DEBUG
152153
ARM_DETAILS
153154
}
154155

0 commit comments

Comments
 (0)