From patchwork Mon Feb 11 18:33:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 158027 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2927640jaa; Mon, 11 Feb 2019 10:33:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IaSLzRk4Kz/cBsv7SgqGBLaY/TV6cKzuu6Dc6lsLbvbMnSPKqR6yJlx/IxbuGAPuzh+oQ4/ X-Received: by 2002:a63:2e88:: with SMTP id u130mr35140925pgu.9.1549910012193; Mon, 11 Feb 2019 10:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549910012; cv=none; d=google.com; s=arc-20160816; b=D783nzlyBL6Sz/hN41BXXSkiFFDiFTWvPRgIWsmCBYNK75ioWQMxDbATutI4LZOefC WvzFhuwmP8XBHXXCHPFh2EzRrLnfAW8UWD3JyggSw2yXsbbZ0prziiCbTZmQmyFLkpCA YbrKAkrFxL9CqfW8+POelrljhz4ULdTOt4yVeWjRG/QbqbC/wSLBJQyIyFKv/K324Nuf FzbPzkvNSVWgfTYIBXQZvWAKlP4fLDP/BYgXx60sTixbkcqm+lg3BSPq8yUdNU+7Tj17 ls3d9COtciLEchFgFEkLrCvrRb6pDtX78EkSe+olw4ZOqjIFpGxPLOMbNF100t2kVqL6 PHpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=8btVi/MIQ3xXgY0zg2Q/NaotDO0xzvj+Bl/EGM2CHwQ=; b=kZniQC4pHx1iph7Sr0UPLdZrSDz3C0zZ5YP2+MQOzbN++BTzgakVp64EcMan1zmJCA jw1rsyH/UMaD9DgYOeLOkGAkBHvYkpgRTH3JtT5oQG+ZqCgL2EYAwXgID9WcpcpDkT4y TAKXSU0qFjPQ5Zrt1oTa89hPCqPlkcQFBQ6FVu+A7xaxb5q462cVime+Hc0Xhb1CXoLB JjspxZ3arOrB8lLkLJPqkCG/ybjqzYaj2VRwwkrzddIPex1kfOfuqqyO0QGYQuax1JYH ghGHm5TI2YXDV7tmDgXvqwfWFdalt5p9VWtN5POnpEetWHgV/fJbGdaPFUCcY/pORAyU IixQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RaBTUw9S; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id z8si9542357pgv.204.2019.02.11.10.33.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 10:33:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RaBTUw9S; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id F2C67208D6149; Mon, 11 Feb 2019 10:33:30 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::344; helo=mail-wm1-x344.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D8C11208AEA1C for ; Mon, 11 Feb 2019 10:33:28 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id r17so246571wmh.5 for ; Mon, 11 Feb 2019 10:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=V/hTFpccTHWiksEWn8ezbUuk3nfNSWqHZLaVYY03yAE=; b=RaBTUw9SWkz5zrvZTF/JnDXxjS5umIcTT/1dNNuNQedZpYAMT2yMshRt7ViL51A9aq 8msPL8LhSFmI0QB6NJGGEZLioHhnjKxkFhLW5JbZZicOOS9IVor2+gNkjQ6B9cUlBoEu XGhT2ADaMYnBW5DXyu7bUqkbp1BTp/zA6J9DHXl6Fy36NYIVc3CXpEkeP77Y/gkGUade kq/gvOzf7eorumdMQNZC1HRrRsun4eC7EZ+weL7AkLGJ3iSoINImuhgmsvcSTHgcvoJq ggMxMzF7WPTBOqS1KJzm6RLqzssNfuUTHJ4El2KmVrgINbvadKOrR82ijNBtyPF35eo1 wOTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=V/hTFpccTHWiksEWn8ezbUuk3nfNSWqHZLaVYY03yAE=; b=i/b3zchDomfaqHL/wCLGSUYebOhMaZM41pZhtcWubN/PY6Wu+rbckPxyxpodkH7Z/M 2pEwroxZF/Gr8gmQj6iIg3FncfuaUcwbuLaw9+3SUMu/H78nx+BwIMPr2okAsNDjRqpv 9fnlkOlS/obSz06JP45xNGboXz7cffYECpsrh+/PeFnQsjp1SghaA1bpxi3IShOLFWbh RSgjbQU0YqnlGLaX7gljGhLTsJ7tkA+u8NxtNUfYwBg/AaVlw4W4hHhB7dbX+ew06OuF 1uXRn+sYMO/4WmNJ9DBOJSNsw36L9l1/rei96TXooammj1w7xpMefHPjTOvQW8p8H+hY s7Rg== X-Gm-Message-State: AHQUAuZ4E2GmB8DZoU8SP1iqhgWPNrpjr9AbN1JM5WxcIG1MQbTCe2Mm dhrCOboAeWqx/MMmq1r+7DBWNNjnsY8= X-Received: by 2002:a1c:ce8a:: with SMTP id e132mr661699wmg.12.1549910006546; Mon, 11 Feb 2019 10:33:26 -0800 (PST) Received: from sudo.home ([2a01:cb1d:112:6f00:e074:a095:c660:df9b]) by smtp.gmail.com with ESMTPSA id z17sm7312362wrs.75.2019.02.11.10.33.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 10:33:25 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 11 Feb 2019 19:33:22 +0100 Message-Id: <20190211183322.23133-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-platforms] Silicon/SynQuacer/Stage2Tables: fix build for cross compile from x86 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" AArch64 binutils support AArch32 seamlessly when running natively, which allowed us to drop the -I objcopy argument specifying that the input format is elf64-little, which is no longer accurate now that the module can be built in 32-bit mode as well (which makes no difference whatsoever given that the resulting binary image is only a set of stage2 page tables) The same does not apply to binutils hosted on x86, so add back the appropriate input format depending on the target type. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Acked-by: Leif Lindholm Tested-by: Leif Lindholm diff --git a/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf b/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf index f845015b9002..3e7039d586e1 100644 --- a/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf +++ b/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf @@ -26,6 +26,8 @@ [Sources] [BuildOptions] *_*_*_OBJCOPY_PATH == objcopy *_*_*_OBJCOPY_FLAGS == -O binary -j .rodata + *_*_AARCH64_OBJCOPY_FLAGS = -I elf64-little + *_*_ARM_OBJCOPY_FLAGS = -I elf32-little *_*_*_ASM_FLAGS == -nostdlib -Wl,-e,0x81f8000,--section-start=.rodata=0x81f8000 *_CLANG35_*_ASM_FLAGS = -no-integrated-as *_CLANG38_*_ASM_FLAGS = -no-integrated-as