Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEE87C636D6 for ; Mon, 20 Feb 2023 06:02:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 420A9857E9; Mon, 20 Feb 2023 07:02:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="PaK4x83m"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="MgxPhzfB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9355685851; Mon, 20 Feb 2023 07:02:47 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 40C9D84517 for ; Mon, 20 Feb 2023 07:02:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1FF893200947; Mon, 20 Feb 2023 01:02:42 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 20 Feb 2023 01:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1676872961; x=1676959361; bh=3RKLjSDstW2iahxZaop4oWmhg IBIY9BmQsAURxBfea4=; b=PaK4x83mEb4KwqyDmKoYhdoAA9/TAXfIqqyoGgk/N MlddT+v0mytSofzurGe1iozwdzKl42t/TKC9qFrFavhNSQqKC9HXfgCksSz4B3U5 l+CgvGstHAO5nbnZSA+5cqoxMh/w2AAbGFSY8K0J+/zN6wHCbbqwvs4FXC7RGBbb RQ/0w8x5m2GeNyVAQQ2rqZYCluQuEWxmlErw86gMY3I8o1tfIw9uDrxAE64saC8j 4U56c++LoYY1CcKa+eyFZK/5xZQgg2p20iJBjGbyEqldiMc4J9qXYc8dcgdnnka+ c9m/THMReVFQQnfgDENQtQeYd73arQ4Z2Bum0F+j6v2UQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1676872961; x=1676959361; bh=3RKLjSDstW2iahxZaop4oWmhgIBIY9BmQsA URxBfea4=; b=MgxPhzfB2oXt7wVTBx9NQvZwYc9z9zgAok8/Foeb4E6Eqoybm2B r9IPzDvJ1qMC3Zijc+OSKKmBtywj8U3LUDGugVUVgp96//tgBtst1UIwmJbDdQXw +mtblrkUZtrYYDQbpqnePtLN02MM7j68B9rb0pGM6h2FnRz3Y1b9FGgLfDxxPzA8 eXcLcv6OfAU7u1TKHaubpMHoA6mabzxrUJB0SpG/09bUpK9FkcvYUjBMP4dD6VG4 NKfOP12u9p65GRn0olOioDjqArXL0+7AdzKOl0jMytR8HaO1pzVpLRgtrTLhNZtn O/wB51uRrtBGVmJfID9Rq1CPIBydTHz0Ycw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejgedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Feb 2023 01:02:40 -0500 (EST) From: Samuel Holland To: Rick Chen , Leo Cc: Samuel Holland , u-boot@lists.denx.de Subject: [PATCH] riscv: Support CONFIG_REMAKE_ELF Date: Mon, 20 Feb 2023 00:02:39 -0600 Message-Id: <20230220060239.42279-1-samuel@sholland.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Add flags to tell objcopy what kind of ELF to create. Signed-off-by: Samuel Holland --- arch/riscv/config.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index a8ed3faf28c..e5f4af22bcb 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk @@ -16,11 +16,13 @@ ifdef CONFIG_32BIT KBUILD_LDFLAGS += -m $(32bit-emul) EFI_LDS := elf_riscv32_efi.lds +PLATFORM_ELFFLAGS += -B riscv -O elf32-littleriscv endif ifdef CONFIG_64BIT KBUILD_LDFLAGS += -m $(64bit-emul) EFI_LDS := elf_riscv64_efi.lds +PLATFORM_ELFFLAGS += -B riscv -O elf64-littleriscv endif PLATFORM_CPPFLAGS += -ffixed-gp -fpic -- 2.39.2