RISC-V: define RUNTIME_DISCARD_EXIT
PATCH 1/1 RISC-V: define RUNTIME_DISCARD_EXIT
From: Conor Dooley <[email protected]>
Masahiro noted:
Quoted 4 lines
arch/riscv/kernel/vmlinux.lds.Sclearly says:
/* we have to discard exit text and such at runtime, not link time */ [...]
so riscv should defineRUNTIME_DISCARD_EXITlike x86, arm64.
As things stand, no ill comes of this - but if "DISCARDS" was to be re-ordered in the linker script, linking would fail.
Do as suggested by Masahiro and define RUNTIME_DISCARD_EXIT.
Link https://lore.kernel.org/all/CAK7LNAT39aZEw=0209ovYZ2kxtOaA2a51=XD9=LqYHjkTOEK4g@mail.gmail.com/ open here
Suggested-by Masahiro Yamada <[email protected]>
Signed-off-by Conor Dooley <[email protected]>
--- arch/riscv/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)
arch/riscv/kernel/vmlinux.lds.S +1 -0
@@ -5,6 +5,7 @@ */ #define RO_EXCEPTION_TABLE_ALIGN 4 +#define RUNTIME_DISCARD_EXIT #ifdef CONFIG_XIP_KERNEL #include "vmlinux-xip.lds.S"
Signature · 7 lines
2.39.0 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv