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)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 22 Apr 2023 12:24:15 +0000 (13:24 +0100)
commit43e5846a616a712b650162d0427eb320f55caf3a
treeb7d91b043887e9267e728f17947945053d380bfb
parent799a5bdc41df1a040b13a054247d95650aba61f1
MIPS: Define RUNTIME_DISCARD_EXIT in LD script

Origin: https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?h=mips-fixes&id=6dcbd0a69c84a8ae7a442840a8cf6b1379dc8f16

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>
Gbp-Pq: Topic bugfix/mips
Gbp-Pq: Name MIPS-Define-RUNTIME_DISCARD_EXIT-in-LD-script.patch
arch/mips/kernel/vmlinux.lds.S