Skip to content

Commit b99ddbe

Browse files
masahir0yrichardweinberger
authored andcommitted
UML: define RUNTIME_DISCARD_EXIT
With CONFIG_VIRTIO_UML=y, GNU ld < 2.36 fails to link UML vmlinux (w/wo CONFIG_LD_SCRIPT_STATIC). `.exit.text' referenced in section `.uml.exitcall.exit' of arch/um/drivers/virtio_uml.o: defined in discarded section `.exit.text' of arch/um/drivers/virtio_uml.o collect2: error: ld returned 1 exit status This fix is similar to the following commits: - 4b9880d ("powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT") - a494398 ("s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36") - c1c551b ("sh: define RUNTIME_DISCARD_EXIT") Fixes: 99cb0d9 ("arch: fix broken BuildID for arm64 and riscv") Reported-by: SeongJae Park <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Tested-by: SeongJae Park <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 522c532 commit b99ddbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/kernel/vmlinux.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
#define RUNTIME_DISCARD_EXIT
22
KERNEL_STACK_SIZE = 4096 * (1 << CONFIG_KERNEL_STACK_ORDER);
33

44
#ifdef CONFIG_LD_SCRIPT_STATIC

0 commit comments

Comments
 (0)