Skip to content

Commit

Permalink
MIPS: Define RUNTIME_DISCARD_EXIT in LD script
Browse files Browse the repository at this point in the history
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" <[email protected]>
Signed-off-by: Jiaxun Yang <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
  • Loading branch information
FlyGoat authored and tsbogend committed Apr 21, 2023
1 parent ab327f8 commit 6dcbd0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#define EMITS_PT_NOTE
#endif

#define RUNTIME_DISCARD_EXIT

#include <asm-generic/vmlinux.lds.h>

#undef mips
Expand Down

0 comments on commit 6dcbd0a

Please sign in to comment.