[Devel] [PATCH rh7] x86/vdso: Fix build failure with GCC5

Andrey Ryabinin aryabinin at virtuozzo.com
Wed Oct 28 07:33:02 PDT 2015


gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make[2]: *** [arch/x86/vdso/vdso.so.dbg] Error 1

GCC could be configured to use this option by default.
This option is only matters for lto, so we could safely disable it.

And I have no idea why it triggers at all (we don't use -flto) and
why it only in vdso.so.dbg. But this patch works around this issue.

Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 arch/x86/vdso/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile
index 35bcad7..cbe63eb 100644
--- a/arch/x86/vdso/Makefile
+++ b/arch/x86/vdso/Makefile
@@ -176,7 +176,7 @@ $(obj)/vdso32-syms.lds: $(vdso32.so-y:%=$(obj)/vdso32-%-syms.lds) FORCE
 # The DSO images are built using a special linker script.
 #
 quiet_cmd_vdso = VDSO    $@
-      cmd_vdso = $(CC) -nostdlib -o $@ \
+      cmd_vdso = $(CC) $(call cc-option, -fno-use-linker-plugin) -nostdlib -o $@ \
 		       $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
 		       -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) \
 		$(if $(AFTER_LINK),; $(AFTER_LINK)) && \
-- 
2.4.10




More information about the Devel mailing list