aboutsummaryrefslogtreecommitdiff
path: root/target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2024-03-18 10:48:13 +1100
committerDaniel Golle <daniel@makrotopia.org>2024-05-07 13:01:19 +0100
commit587b8b8e3211c8ecbd0281bc6742e3ef618e50f1 (patch)
treecf18b538464c4fbe2257a49efdd4f2efa3179cf3 /target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch
parentf125e38ced28d9e673480732df51f0b24f280e93 (diff)
kernel/armsr: Restore kernel files for v6.1
This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Mathew McBride <matt@traverse.com.au>
Diffstat (limited to 'target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch')
-rw-r--r--target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch b/target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch
new file mode 100644
index 0000000000..7c0b4b1920
--- /dev/null
+++ b/target/linux/armsr/patches-6.1/221-armsr-disable_gc_sections_armv7.patch
@@ -0,0 +1,23 @@
+From b77c0ecdc7915e5c5c515da1aa6cfaf6f4eb8351 Mon Sep 17 00:00:00 2001
+From: Mathew McBride <matt@traverse.com.au>
+Date: Wed, 28 Sep 2022 16:39:31 +1000
+Subject: [PATCH] arm: disable code size reduction measures
+ (gc-sections,-f*-sections)
+
+This interferes with the EFI boot stub on armv7l.
+
+Signed-off-by: Mathew McBride <matt@traverse.com.au>
+---
+ arch/arm/Kconfig | 1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/arch/arm/Kconfig
++++ b/arch/arm/Kconfig
+@@ -124,7 +124,6 @@ config ARM
+ select HAVE_VIRT_CPU_ACCOUNTING_GEN
+ select IRQ_FORCED_THREADING
+ select LOCK_MM_AND_FIND_VMA
+- select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
+ select MODULES_USE_ELF_REL
+ select NEED_DMA_MAP_STATE
+ select OF_EARLY_FLATTREE if OF