From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AHgI3Ial44W6mxn3SWHi9xLC/ZnZTu40ot5VLzoA9IXwbU9YmtAztMNqS7CASS42cXCN2o98XSyu2w== 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: [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: , X-List-Received-Date: Mon, 11 Feb 2019 18:33:29 -0000 Content-Transfer-Encoding: 8bit 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(+) 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 -- 2.20.1