android_kernel_motorola_sm6375/arch/um
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Masahiro Yamada 7a934a77f1 UML: define RUNTIME_DISCARD_EXIT
commit b99ddbe8336ee680257c8ab479f75051eaa49dcf upstream.

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:

- 4b9880dbf3bd ("powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT")
- a494398bde27 ("s390: define RUNTIME_DISCARD_EXIT to fix link error
  with GNU ld < 2.36")
- c1c551bebf92 ("sh: define RUNTIME_DISCARD_EXIT")

Fixes: 99cb0d917ffa ("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]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-03-17 08:32:54 +01:00
..
configs
drivers um: vector: Fix memory leak in vector_config 2023-03-11 16:44:08 +01:00
include um: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
kernel UML: define RUNTIME_DISCARD_EXIT 2023-03-17 08:32:54 +01:00
os-Linux um: add "noreboot" command line option for PANIC_TIMEOUT=-1 setups 2022-08-25 11:18:34 +02:00
scripts
.gitignore
Kconfig
Kconfig.debug
Makefile arch: um: Mark the stack non-executable to fix a binutils warning 2022-10-15 07:54:38 +02:00
Makefile-os-Linux
Makefile-skas