Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2213065ybb; Sun, 5 Apr 2020 01:41:32 -0700 (PDT) X-Google-Smtp-Source: APiQypKlgKwKRO1gkX4P3APyQuRE+P/Pz6mVYwhp53y6oyU+QPo3VP6K4KthbsU95EP7CTycwCct X-Received: by 2002:a05:6830:158e:: with SMTP id i14mr13798849otr.103.1586076092024; Sun, 05 Apr 2020 01:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586076092; cv=none; d=google.com; s=arc-20160816; b=XHntvEsvqsV66DN6qtAMUjuxaTwevknSznW48Jzj+txw93qSDXRY1vI0EUdfl7mXEy B0X+BD36s9AIlD+yr6GLut7dkxfdj7LqRwSYdqY30lIIzCd1i/iKgi1gXgMpCJxsW/tq tH6s0uLwTFuLSL6+/cm9EA0UhI4322BDuSOnI5KuvGjPKQ9hkn7PylhFbMALGwJkAsfM dVPw1iGAwtgxumGI+KS18Kj8C4v8NV5w/SEq0dLa32u0xWlJR/moXldXrE5fQMg+5hpb wgxjOfbSyaaAbVv3QTJlXGkXyzFLB2fid5iqjgNo7yd+LD+75RJg3mWr3oOM77XbWnZy Ps/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:subject:message-id:cc:to:from:dkim-signature; bh=jlfqA7A2mmN1MCE9Hu767OVJ/7u6nHkaQCRHUH9vIcI=; b=dHak5a49a+q8z4m4cu8ApjaDAqhpfdJU94PdmwqGJvcoRClzV+aY+0sbmZypr8fhcl eZxbXWTtwQmAKJweo+IxJEsU9SR11u72K9oXf3AJ/4q6NAEPM9HkL01cnvlXK8R1Vl2z tNOAixh2CdkO3gAlTv1bnlOlUAn5TQGuz5PgmVg8kczaOV/gbbEb3mv0jwRtVVd70RrA koRA2U0jmlP+3Rm+o0Sygrd6/OsinfJhbjH5f0kBjE6ykUonw69hZQoosWnfLL6EiOpo 9nBQxfKCr7NXnKcv6NU4mN8jQmAQFa9ZCcQ72S+pf6Z+GHjYwrTKnmozo7+tARt+GPXD ZXiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=IYYgMZyi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si6626697ots.270.2020.04.05.01.41.19; Sun, 05 Apr 2020 01:41:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=IYYgMZyi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726417AbgDEIk7 (ORCPT + 99 others); Sun, 5 Apr 2020 04:40:59 -0400 Received: from sender2-op-o12.zoho.com.cn ([163.53.93.243]:17582 "EHLO sender2-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbgDEIk7 (ORCPT ); Sun, 5 Apr 2020 04:40:59 -0400 X-Greylist: delayed 925 seconds by postgrey-1.27 at vger.kernel.org; Sun, 05 Apr 2020 04:40:56 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1586075102; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=jlfqA7A2mmN1MCE9Hu767OVJ/7u6nHkaQCRHUH9vIcI=; b=IYYgMZyiU3o33Tg3dO7svxhHO1GN8WczdboM3eNpfiTMRRuPToWQZQ1D1P0vOtPW GFw4GM2403Fnmo03B47ozPxh3shyipdmVSbiuom2uHSay74TLw1tJHmxfT4+kjK3nmb Skx/wzzg19y3Ke3LC6V6Kf/CoRVnCLrvRGcfjzvc= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1586075100036667.996448622306; Sun, 5 Apr 2020 16:25:00 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Fangrui Song , Nathan Chancellor , Thomas Bogendoerfer , linux-kernel@vger.kernel.org Message-ID: <20200405082451.694910-1-jiaxun.yang@flygoat.com> Subject: [PATCH] MIPS: malta: Set load address for 32bit kernel correctly Date: Sun, 5 Apr 2020 16:24:49 +0800 X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LLD failed to link vmlinux with 64bit load address for 32bit ELF while bfd will strip 64bit address into 32bit silently. To fix LLD build, we should supply a 32bit load address for 32bit kernel. Signed-off-by: Jiaxun Yang Reviewed-by: Fangrui Song Tested-by: Nathan Chancellor --- arch/mips/mti-malta/Platform | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/mti-malta/Platform b/arch/mips/mti-malta/Platform index 2cc72c9b38e3..f9b49cba1764 100644 --- a/arch/mips/mti-malta/Platform +++ b/arch/mips/mti-malta/Platform @@ -6,6 +6,10 @@ cflags-$(CONFIG_MIPS_MALTA)=09+=3D -I$(srctree)/arch/mips/= include/asm/mach-malta ifdef CONFIG_KVM_GUEST load-$(CONFIG_MIPS_MALTA)=09+=3D 0x0000000040100000 else +ifdef CONFIG_64BIT load-$(CONFIG_MIPS_MALTA)=09+=3D 0xffffffff80100000 +else + load-$(CONFIG_MIPS_MALTA)=09+=3D 0x80100000 +endif endif all-$(CONFIG_MIPS_MALTA)=09:=3D $(COMPRESSION_FNAME).bin --=20 2.26.0.rc2