summaryrefslogtreecommitdiffstats
path: root/arch/x86/um
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2023-01-13 18:03:00 +0100
committerRichard Weinberger <richard@nod.at>2023-02-13 10:14:31 +0100
commit83e913f52aba69149261742aa9ea4ceea7bf182d (patch)
tree5193ef9b2936fc2074369a5042a57e4efe985934 /arch/x86/um
parentum: put power options in a menu (diff)
downloadlinux-83e913f52aba69149261742aa9ea4ceea7bf182d.tar.xz
linux-83e913f52aba69149261742aa9ea4ceea7bf182d.zip
um: Support LTO
Only a handful of changes are necessary to get it to work. Signed-off-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um')
-rw-r--r--arch/x86/um/vdso/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/um/vdso/Makefile b/arch/x86/um/vdso/Makefile
index 6fbe97c52c99..6825e146a62f 100644
--- a/arch/x86/um/vdso/Makefile
+++ b/arch/x86/um/vdso/Makefile
@@ -61,7 +61,7 @@ CFLAGS_REMOVE_um_vdso.o = -pg -fprofile-arcs -ftest-coverage
#
quiet_cmd_vdso = VDSO $@
cmd_vdso = $(CC) -nostdlib -o $@ \
- $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
+ $(CC_FLAGS_LTO) $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
-Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \
sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@'