From: Greg Kroah-Hartman Date: Sun, 23 Apr 2023 10:31:26 +0000 (+0200) Subject: 5.4-stable patches X-Git-Tag: v4.14.314~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9276838f536ca5ccdd22577d77a1299c97b3ffeb;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: mips-define-runtime_discard_exit-in-ld-script.patch --- diff --git a/queue-5.4/mips-define-runtime_discard_exit-in-ld-script.patch b/queue-5.4/mips-define-runtime_discard_exit-in-ld-script.patch new file mode 100644 index 00000000000..5387d30f9f1 --- /dev/null +++ b/queue-5.4/mips-define-runtime_discard_exit-in-ld-script.patch @@ -0,0 +1,35 @@ +From 6dcbd0a69c84a8ae7a442840a8cf6b1379dc8f16 Mon Sep 17 00:00:00 2001 +From: Jiaxun Yang +Date: Sat, 8 Apr 2023 21:33:48 +0100 +Subject: MIPS: Define RUNTIME_DISCARD_EXIT in LD script + +From: Jiaxun Yang + +commit 6dcbd0a69c84a8ae7a442840a8cf6b1379dc8f16 upstream. + +MIPS's exit sections are discarded at runtime as well. + +Fixes link error: +`.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o: +defined in discarded section `.exit.text' of fs/fuse/inode.o + +Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") +Reported-by: "kernelci.org bot" +Signed-off-by: Jiaxun Yang +Signed-off-by: Thomas Bogendoerfer +Signed-off-by: Greg Kroah-Hartman +--- + arch/mips/kernel/vmlinux.lds.S | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/arch/mips/kernel/vmlinux.lds.S ++++ b/arch/mips/kernel/vmlinux.lds.S +@@ -10,6 +10,8 @@ + */ + #define BSS_FIRST_SECTIONS *(.bss..swapper_pg_dir) + ++#define RUNTIME_DISCARD_EXIT ++ + #include + + #undef mips diff --git a/queue-5.4/series b/queue-5.4/series index ebfdd2ec3a8..67437443548 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -24,3 +24,4 @@ iio-light-tsl2772-fix-reading-proximity-diodes-from-device-tree.patch nilfs2-initialize-unused-bytes-in-segment-summary-blocks.patch memstick-fix-memory-leak-if-card-device-is-never-registered.patch mmc-sdhci_am654-set-high_speed_ena-for-sdr12-and-sdr25.patch +mips-define-runtime_discard_exit-in-ld-script.patch