Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF85FC07E99 for ; Fri, 9 Jul 2021 15:02:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 11F57610E6 for ; Fri, 9 Jul 2021 15:02:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11F57610E6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xs4all.nl Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 298ED8328A; Fri, 9 Jul 2021 17:02:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 1ECFE832B8; Fri, 9 Jul 2021 17:02:23 +0200 (CEST) Received: from sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) (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 53B4E82DB1 for ; Fri, 9 Jul 2021 17:02:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mark.kettenis@xs4all.nl Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 25b42195; Fri, 9 Jul 2021 17:02:19 +0200 (CEST) Date: Fri, 9 Jul 2021 17:02:19 +0200 (CEST) From: Mark Kettenis To: Tom Rini Cc: u-boot@lists.denx.de In-Reply-To: <20210709143921.29878-1-trini@konsulko.com> (message from Tom Rini on Fri, 9 Jul 2021 10:39:21 -0400) Subject: Re: [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT References: <20210709143921.29878-1-trini@konsulko.com> Message-ID: <561395b72f3db60d@bloch.sibelius.xs4all.nl> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean > From: Tom Rini > Date: Fri, 9 Jul 2021 10:39:21 -0400 > > When we build U-Boot with POSITION_INDEPENDENT we must have > SYS_TEXT_BASE be set to zero. Make this the default in that case. Makes sense. I had to set this for the (still in progress) Apple M1 support. So: Reviewed-by: Mark Kettenis P.S. Any chance of picking up the first diff I sent a while ago that was acked by Marc Zyngier? https://patchwork.ozlabs.org/project/uboot/patch/20210210191456.25644-1-kettenis@openbsd.org/ > Signed-off-by: Tom Rini > --- > common/Kconfig.boot | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/common/Kconfig.boot b/common/Kconfig.boot > index 89a3161f1faa..f078743f06ed 100644 > --- a/common/Kconfig.boot > +++ b/common/Kconfig.boot > @@ -358,6 +358,7 @@ config HAVE_SYS_TEXT_BASE > > config SYS_TEXT_BASE > depends on HAVE_SYS_TEXT_BASE > + default 0x0 if POSITION_INDEPENDENT > default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3 > default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S > default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I > -- > 2.17.1 > >