From patchwork Sun Mar 5 17:49:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 1751957 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Lyx39a/a; dkim-atps=neutral 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 (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PV8Pm1Pkhz23hX for ; Mon, 6 Mar 2023 04:50:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F30A985DA8; Sun, 5 Mar 2023 18:50:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="Lyx39a/a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D024685B96; Sun, 5 Mar 2023 18:49:40 +0100 (CET) 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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 09D5C8567B for ; Sun, 5 Mar 2023 18:49:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ovpanait@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id a25so29935548edb.0 for ; Sun, 05 Mar 2023 09:49:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678038576; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+yAJK9BZxBe57HR6yOelYF6DvTLPdlkvsLStZtIOzCw=; b=Lyx39a/aGPDNuXw0VwptdswwDGZJXRbE4IvLgRWkogXdk/edxGRwbRu0t5nY/6Oc46 X3BkGq5MyJ417zA7oJ41JLk8/JqlhxQTEnqsx/FrMZI4azFUnDSL8Mo0pG3ukPumkYGe /RFu7Dh2nWcUoFIVdSNVZP9wCm2ZYhsnNQSY6xeX5FXMQAopf1CcTzx31i6pHOmLLGWB YJGb/1NkedloGLQAOSJ0O4IOQxc6knpDFAsOFE1nTKDk1CJJPfzGDt2QKa+WdNNOhJAq CTe0yRS+IgM+RY0y8VG2OvOXGqx0tDEcyG+r7qPI0mcRO7/NKfMUf1zIrxnmHyenyyMG aCWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678038576; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+yAJK9BZxBe57HR6yOelYF6DvTLPdlkvsLStZtIOzCw=; b=Hf3NHPparhVD42OFGYVi4pIHgWjI7mTGtdlkw3mqAQSCCMvNdn+ZPis1S8oe2m3zyO e/06U1rdBbqR16M7cllVWD67+1+y8BikvyIi6Z36DTU/1SUGCW4/yVVpFpUrqjvE/a2v s99kivu2gCpHc/soiL29WdnTF83EOEPY9bO6iLwGvgAb/gzZ0227V4nwP/AoMPgw3Gwt QNMc+0qw72QOjv0OwZImq/WqHx+YqSGt3BNr0E+cZ76ONy0LoXE5LVBXZJeIC89FS/Du zA2rcnHh5bXViQdI3mSBbAQAWbXZSqmpHZgE1gCPE1M4rPePnRmAqbQ+m1ZOyhovA5YQ 0ZuQ== X-Gm-Message-State: AO0yUKW4ryNY8UgNO7jZgbiqzug3kG7LW1jh+QEK9n30KCeuNzbDQlrB 6cAY7daN3n92udbZEwSzjfuztRLpcgY= X-Google-Smtp-Source: AK7set9NWLTALTOn6KwyUIL+R/lxLOJ7ZyLcyRPY1ETEb0Qect7QScfDMSOUE4n6rgCZUj4giOi0zw== X-Received: by 2002:a17:906:4809:b0:878:5f35:b8d6 with SMTP id w9-20020a170906480900b008785f35b8d6mr7354534ejq.51.1678038576380; Sun, 05 Mar 2023 09:49:36 -0800 (PST) Received: from localhost.localdomain ([2a02:2f0e:c915:3800:3ec7:a5bc:2321:4538]) by smtp.gmail.com with ESMTPSA id l26-20020a170906231a00b008b69aa62efcsm3464985eja.62.2023.03.05.09.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 09:49:36 -0800 (PST) From: Ovidiu Panait To: u-boot@lists.denx.de Cc: Ovidiu Panait , Michal Simek , Michal Simek Subject: [PATCH 4/5] microblaze: drop CONFIG_NEEDS_MANUAL_RELOC Date: Sun, 5 Mar 2023 19:49:18 +0200 Message-Id: <20230305174919.293393-4-ovpanait@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230305174919.293393-1-ovpanait@gmail.com> References: <20230305174919.293393-1-ovpanait@gmail.com> MIME-Version: 1.0 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 Microblaze and m68k are the only remaining architectures that still enable CONFIG_NEEDS_MANUAL_RELOC by default. Microblaze has had runtime relocation support using CONFIG_STATIC_RELA for quite some time, since commit d58c007498 ("microblaze: Add support for run time relocation"). Drop support for CONFIG_NEEDS_MANUAL_RELOC and make runtime relocation the default, as the rest of the architectures do. Signed-off-by: Ovidiu Panait Reviewed-by: Michal Simek --- arch/microblaze/Kconfig | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig index ce157a79cc..e38c9f6d71 100644 --- a/arch/microblaze/Kconfig +++ b/arch/microblaze/Kconfig @@ -4,19 +4,8 @@ menu "MicroBlaze architecture" config SYS_ARCH default "microblaze" -config NEEDS_MANUAL_RELOC - bool "Disable position-independent pre-relocation code" - default y - help - U-Boot expects to be linked to a specific hard-coded address, and to - be loaded to and run from that address. This option lifts that - restriction, thus allowing the code to be loaded to and executed from - almost any 4K aligned address. This logic relies on the relocation - information that is embedded in the binary to support U-Boot - relocating itself to the top-of-RAM later during execution. - config STATIC_RELA - def_bool y if !NEEDS_MANUAL_RELOC + def_bool y choice prompt "Target select"