linux-stable/arch/um
Masahiro Yamada 05650b267e 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:50:32 +01:00
..
configs treewide: defconfig: address renamed CONFIG_DEBUG_INFO=y 2022-09-11 21:55:05 -07:00
drivers um: virt-pci: properly remove PCI device from bus 2023-03-11 13:55:23 +01:00
include kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
kernel UML: define RUNTIME_DISCARD_EXIT 2023-03-17 08:50:32 +01:00
os-Linux um: Enable FORTIFY_SOURCE 2022-09-07 16:37:27 -07:00
scripts
.gitignore
Kbuild
Kconfig um: Enable FORTIFY_SOURCE 2022-09-07 16:37:27 -07:00
Kconfig.debug
Makefile arch: um: Mark the stack non-executable to fix a binutils warning 2022-09-21 09:11:42 +02:00
Makefile-os-Linux
Makefile-skas