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

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 28 07:42:04 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.9.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.9.3
------>
commit ba188483d68da6fd31febb41ba7089cadcfea727
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Wed Oct 28 18:42:04 2015 +0400

    x86/vdso: Fix build failure with GCC5
    
    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)) && \



More information about the Devel mailing list