diff options
author | Peter Foley <pefoley2@pefoley.com> | 2023-01-13 12:03:00 -0500 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-02-13 10:14:31 +0100 |
commit | 83e913f52aba69149261742aa9ea4ceea7bf182d (patch) | |
tree | 5193ef9b2936fc2074369a5042a57e4efe985934 /arch/x86/um | |
parent | f09c3fcf67a3294c981b861981143e38895c5a59 (diff) | |
download | linux-83e913f52aba69149261742aa9ea4ceea7bf182d.tar.gz linux-83e913f52aba69149261742aa9ea4ceea7bf182d.tar.bz2 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/Makefile | 2 |
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)' '$@' |