]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: Define RUNTIME_DISCARD_EXIT in LD script
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sat, 8 Apr 2023 20:33:48 +0000 (21:33 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Apr 2023 21:59:43 +0000 (23:59 +0200)
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" <bot@kernelci.org>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/vmlinux.lds.S

index 52cbde60edf5b1b780b0ba30666aca3df4196b96..9ff55cb80a6457bba4c5a103c66372523380aff6 100644 (file)
@@ -15,6 +15,8 @@
 #define EMITS_PT_NOTE
 #endif
 
+#define RUNTIME_DISCARD_EXIT
+
 #include <asm-generic/vmlinux.lds.h>
 
 #undef mips