From patchwork Sun May 19 20:53:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 1936844 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.a=rsa-sha256 header.s=fm2 header.b=O3YAVKD2; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=ZOxj38OB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VjCcg0Fv8z1ydW for ; Mon, 20 May 2024 06:54:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 860398831D; Sun, 19 May 2024 22:53:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.b="O3YAVKD2"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZOxj38OB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 718A188193; Sun, 19 May 2024 22:53:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (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 89FFA87E0B for ; Sun, 19 May 2024 22:53:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jiaxun.yang@flygoat.com Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id C48DC13810DC; Sun, 19 May 2024 16:53:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 19 May 2024 16:53:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1716152035; x=1716238435; bh=bQlBt+iVfUSK4kxzCcJXnHm/QJScWt2flOGPD1wpAxo=; b= O3YAVKD21R3XbwWYg3wyzsk6jIkEzdWqcObP+tEIYftB8ZTEVDtDK5lY/e0hwWcQ QTKQ4idHerVhKfAyhUL6cxRSECLTZRqXWcqUmeDlrRNSegNjQanPR/u/Qtjvpl1Z oh/2rEeDi+n+TkGdQGbquMwYLSt8v/TxUM+zOPC0C3ioI3aoFg51tcLsigEMyA27 /LnEyCVynRrvCO7+vhzl9sIYhD1ld9PoiPV7HEobBeTv/Iq3PiWDqTkoE8w699TD DPCVwyMfwDuYczOlqjbfmWVkJ55/QWqRefL4BYigqWbPZwNq95mzGT8U5xmRTq/M howTPjCT39twD0zpAY8bIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1716152035; x= 1716238435; bh=bQlBt+iVfUSK4kxzCcJXnHm/QJScWt2flOGPD1wpAxo=; b=Z Oxj38OBGD5o/PYbrXA4d801RZMozzaHz1pMOFOQYdsF8XloiDPPvjrx9uc/WlZyl 9GbE4k4owQHk99saA6Nap57BopgpP8gCN1qPwf1liJMixqnDdlAppTuFZuGaywEY eURgd15DxFXGtSr08JoInmFZbDIXo+wf146XzZQj3D2kIYQwIPX4/3v42zt/KM6f 620219adXT/rwo9lITuvD+vx6WoD9U1Dq/npAEfvWkc9sbU8liGPqIrnp6eOay8e qF8sgyZOeV+gvP2/7LYr+RCib1+US4FJZksWh30bJ/xqXpcKQ8lY6f0zK4zSJA7t IzXLFjYXhE3aQEvhNtv5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehkedgudehvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpedvkeeihfefveekueevteefleffkeegudeghfdtuddugefh ueevgeffgedukeejleenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 May 2024 16:53:54 -0400 (EDT) From: Jiaxun Yang Date: Sun, 19 May 2024 21:53:51 +0100 Subject: [PATCH 04/10] xtensa: Define PLATFORM_ELFFLAGS MIME-Version: 1.0 Message-Id: <20240519-qemu-xtensa-v1-4-8fff0cb11c19@flygoat.com> References: <20240519-qemu-xtensa-v1-0-8fff0cb11c19@flygoat.com> In-Reply-To: <20240519-qemu-xtensa-v1-0-8fff0cb11c19@flygoat.com> To: u-boot@lists.denx.de, Sean Anderson Cc: Max Filippov , Tom Rini , Sumit Garg , Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=563; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=rwWOyoCrytE0GM6aaqNh8lvMI1u0TbaivPUiRWgPlkQ=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhjSvtHtpbVM+3f7zjm1xmeumDrvdJZ/POrrEfjOb+O2r3 ImnJj5cHaUsDGJcDLJiiiwhAkp9GxovLrj+IOsPzBxWJpAhDFycAjAR5W6Gf2ZvbU28fiWYhqhs m7W2apd99oknLzax/vsSYV3DzND+7QAjw9wZ3dteJshOjdXXrrv3eP2To2s6D+5rlvxzUWuJFlt kDwcA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 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.8 at phobos.denx.de X-Virus-Status: Clean u-boot.elf target requiures it to work. Signed-off-by: Jiaxun Yang --- arch/xtensa/config.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk index b0809999e403..3ec936272f25 100644 --- a/arch/xtensa/config.mk +++ b/arch/xtensa/config.mk @@ -7,3 +7,6 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \ -ffunction-sections -fdata-sections LDFLAGS_FINAL += --gc-sections + +PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le +