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=-17.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 44D10C07E99 for ; Fri, 9 Jul 2021 14:39:35 +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 71B9161182 for ; Fri, 9 Jul 2021 14:39:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71B9161182 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 BAF13832CC; Fri, 9 Jul 2021 16:39:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com 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 CFBFA832C6; Fri, 9 Jul 2021 16:39:30 +0200 (CEST) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E75C0832C6 for ; Fri, 9 Jul 2021 16:39:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f177.google.com with SMTP id t19so9479111qkg.7 for ; Fri, 09 Jul 2021 07:39:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=zewzFYok1fZQIVLMdRu8josWCZOFNN/GVYbmjutneTU=; b=PlQiqbTIy4y5NZ2nHOpjx5GxiIUd3f//wWyLznlCPthyDxEIm05lfEQfiwLVEg4Aor Nt2vpOI4cglD6Omhdn6Eicwl6YATAYMMEHogD9GlX+17Se5yLT7b6LifGpaZ2QhdYyZb WEOtp/+5mnm0Ol3EYdAm6CkIYns2Kv+LB2ET1c0zyU8NIyQVzNCay6WRHt+qYh049RE5 Nbb9s64tm12jKxLTPg9QcFXq7tWga9uRxBJhBGD/rVL74gtTZylmDieAMey7fyQXntkG Ea6T8abz7Sfmd2ebMLzhmBym5ZYbGlb6/gSxeGlW9dMWgyv/qqJfPG3vDEeD5lUMd2U6 vCMA== X-Gm-Message-State: AOAM533cc/09LBRsKYPfGObH5Vky5cQIoYIGgWisbyDNQFD8FVAmhjSK xPRk4V6bMUjU7wYfZSnkkAD9uG9yDVPY X-Google-Smtp-Source: ABdhPJx3s3dul2BqQU2gzSNx9zh3q8pRLMQBNbFGcgBrkuk7xo9Znx6p1nJQC/7KG/EYHY18NKwrRA== X-Received: by 2002:a05:620a:2145:: with SMTP id m5mr13884046qkm.301.1625841564664; Fri, 09 Jul 2021 07:39:24 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-1083-622a-b9ec-c6c6.res6.spectrum.com. [2603:6081:7b01:cbda:1083:622a:b9ec:c6c6]) by smtp.gmail.com with ESMTPSA id h6sm2189901qtb.95.2021.07.09.07.39.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 07:39:24 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT Date: Fri, 9 Jul 2021 10:39:21 -0400 Message-Id: <20210709143921.29878-1-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 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 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. 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