Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755825AbbKCSn2 (ORCPT ); Tue, 3 Nov 2015 13:43:28 -0500 Received: from mail-ob0-f179.google.com ([209.85.214.179]:36480 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbbKCSnV (ORCPT ); Tue, 3 Nov 2015 13:43:21 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Andy Lutomirski Date: Tue, 3 Nov 2015 10:43:01 -0800 Message-ID: Subject: Re: [Bug gold/19197] gold trunk cannot build LInux kernel To: markus at trippelsdorf dot de , "linux-kernel@vger.kernel.org" , X86 ML Cc: Andrew Lutomirski , "H. Peter Anvin" , Andi Kleen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1664 Lines: 44 On Tue, Nov 3, 2015 at 8:04 AM, markus at trippelsdorf dot de wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=19197 > > Markus Trippelsdorf changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |luto at kernel dot org > > --- Comment #8 from Markus Trippelsdorf --- > Andy, would it be possible to just get rid of LDFLAGS for the x86 kernel? > > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index 747860c696e1..b786a2ce58b5 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -169,8 +169,6 @@ avx2_instr :=$(call as-instr,vpbroadcastb > %xmm0$(comma)%ymm1,-DCONFIG_AS_AVX2=1) > KBUILD_AFLAGS += $(asinstr) $(avx_instr) $(avx2_instr) > KBUILD_CFLAGS += $(asinstr) $(avx_instr) $(avx2_instr) > > -LDFLAGS := -m elf_$(UTS_MACHINE) > - > # Speed up the build > KBUILD_CFLAGS += -pipe > # Workaround for a gcc prelease that unfortunately was shipped in a suse > release > > Currently it calls "ld -m elf_x86_64" and then uses OUTPUT_ARCH(i386) in > linker scripts several times during the build. > I don't know the history here. hpa? Andi? Presumably we could strip the problematic -m argument from just the 32-bit things is we care. --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/