From nobody Fri May 3 18:37:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1587040073; cv=none; d=zohomail.com; s=zohoarc; b=QS4UPh113d6YPzgXO9Z4xvrqpdR+Ag23OVShAuQRLorT392iUX2O4wwJsCxzjm9btK4P8Xs0AR7e+tzmkJO4Uchzn5xoecEL3wJXqVoibp1y7r6UJPbj4tgtjt/83WXY0yCNgCneXtIQ8pfOrUTUJMrkVqqSh0ewNaRX40YEvz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587040073; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=RgOhcbqUwtbcMMVh10FpcC6hrNHr2XeJ5tdiRvrHwLI=; b=Hv+myftOQ91jg17OXdRGAhvWRRJQrfJ4xREslVkr2dYHP0DbdlhSLrcDLSNvNlQyeWEb9wqk620pJoTiULFBp/basEOaFtLO4A+5OLFUu9NEI3teogvbrJcnMah0quFSeXRSdgMH0F4cXeEHhgP1wb+OXBNkQB9tmJ58vc4Bc3Q= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1587040073769145.53825402073528; Thu, 16 Apr 2020 05:27:53 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jP3cF-0003Wm-MM; Thu, 16 Apr 2020 12:27:35 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jP3cE-0003WU-Gy for xen-devel@lists.xenproject.org; Thu, 16 Apr 2020 12:27:34 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id a51e214b-7fdd-11ea-8b81-12813bfff9fa; Thu, 16 Apr 2020 12:27:33 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2D0CBAC6D; Thu, 16 Apr 2020 12:27:32 +0000 (UTC) X-Inumbo-ID: a51e214b-7fdd-11ea-8b81-12813bfff9fa X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: minios-devel@lists.xenproject.org, xen-devel@lists.xenproject.org Subject: [PATCH] mini-os: use -m elf_i386 for final linking Date: Thu, 16 Apr 2020 14:27:31 +0200 Message-Id: <20200416122731.22713-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , samuel.thibault@ens-lyon.org Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Using the standard -m elf_x86_64 for 64-bit mini-os results in the first section (.text) to start only at offset 2MB in the binary file. Using -m elf_i386 avoids that problem without any visible disadvantage. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/arch.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/arch.mk b/arch/x86/arch.mk index c87885f..00028a0 100644 --- a/arch/x86/arch.mk +++ b/arch/x86/arch.mk @@ -26,3 +26,5 @@ ifeq ($(CONFIG_PARAVIRT),n) ARCH_LDFLAGS_FINAL :=3D --oformat=3Delf32-i386 ARCH_AS_DEPS +=3D x86_hvm.S endif + +ARCH_LDFLAGS_FINAL +=3D -m elf_i386 --=20 2.16.4