Skip to content

Commit 6dcbd0a

Browse files
FlyGoattsbogend
authored andcommitted
MIPS: Define RUNTIME_DISCARD_EXIT in LD script
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: 99cb0d9 ("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>
1 parent ab327f8 commit 6dcbd0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/mips/kernel/vmlinux.lds.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#define EMITS_PT_NOTE
1616
#endif
1717

18+
#define RUNTIME_DISCARD_EXIT
19+
1820
#include <asm-generic/vmlinux.lds.h>
1921

2022
#undef mips

0 commit comments

Comments
 (0)