linux-stable/arch/um
Masahiro Yamada 7a934a77f1 UML: define RUNTIME_DISCARD_EXIT
commit b99ddbe833 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:

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

Fixes: 99cb0d917f ("arch: fix broken BuildID for arm64 and riscv")
Reported-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-17 08:32:54 +01:00
..
configs um: configs: Remove useless UEVENT_HELPER_PATH 2019-07-02 23:27:41 +02:00
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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
.gitignore
Kconfig um: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-05-22 11:38:28 +02:00
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