diff options
author | Mathew McBride <matt@traverse.com.au> | 2022-09-28 15:47:30 +1000 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2023-06-13 14:12:24 +0200 |
commit | 3f72d24a04f28c3e7bdf625dc4a9d6771ff0a2dd (patch) | |
tree | 27ad775488e001e6572f1af02fee598641e312ea | |
parent | 7c223a881f93cb5e8e68fe8b92693b48d4609002 (diff) | |
download | upstream-3f72d24a04f28c3e7bdf625dc4a9d6771ff0a2dd.tar.gz upstream-3f72d24a04f28c3e7bdf625dc4a9d6771ff0a2dd.tar.bz2 upstream-3f72d24a04f28c3e7bdf625dc4a9d6771ff0a2dd.zip |
armvirt: disable LD dead code elimination on ARM32
This interferes with the generation of the EFI stub section for
ARM32. As this target is not size constrained, disable the dead code
data elimination hack.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(23.05 version of eb0e61285d4da910317e082de559337a305fa1dc)
-rw-r--r-- | target/linux/armvirt/patches-5.15/221-armvirt-disable-gc_sections.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/armvirt/patches-5.15/221-armvirt-disable-gc_sections.patch b/target/linux/armvirt/patches-5.15/221-armvirt-disable-gc_sections.patch new file mode 100644 index 0000000000..ac90a6698d --- /dev/null +++ b/target/linux/armvirt/patches-5.15/221-armvirt-disable-gc_sections.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 +@@ -117,7 +117,6 @@ config ARM + select HAVE_UID16 + select HAVE_VIRT_CPU_ACCOUNTING_GEN + select IRQ_FORCED_THREADING +- select HAVE_LD_DEAD_CODE_DATA_ELIMINATION + select MODULES_USE_ELF_REL + select NEED_DMA_MAP_STATE + select OF_EARLY_FLATTREE if OF |