From patchwork Sat Mar 11 17:38:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 1755786 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=fDDtRTrF; 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 4PYqtP6lQ9z1yWv for ; Sun, 12 Mar 2023 04:39:41 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 678A785FD8; Sat, 11 Mar 2023 18:39:15 +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="fDDtRTrF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CB9E885FCD; Sat, 11 Mar 2023 18:38:58 +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-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 DE68C85FC9 for ; Sat, 11 Mar 2023 18:38:53 +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-x533.google.com with SMTP id cn21so2869588edb.0 for ; Sat, 11 Mar 2023 09:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678556333; 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=W4+8hg1pwWV/BiIC1WBWuWOrcupgDVTfjmf/DGuF4nk=; b=fDDtRTrFdnLKHosUffD23L8m7bMCuTFYFSJXmSrCk7etSwXJDjecv7DqX5XV3aVceY qX4cKPANk9IqpKu444eY2u+MOysNbIYe6xFvUl+hwm+AVDJP+fnRl1Pery019fFii6pi hdP2K3K39SkwRTEmVgnqdoTQyTZEiwAXD5uSuP/W4k93gDkYFyagPmfuR0LjOERymt8g Ojw4UHldmBG63jpCHuN2pHQzclJeSba7vQe0t/fTw7Crx/4YZ+2ECyXS5CNZr/pGW6u2 9Xi43/RUycqShJjXHj9X53hnNzMTciX6FnsUDm5XzrUpJsTBXybkrScIW4XMMtOPJsBm Sz3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556333; 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=W4+8hg1pwWV/BiIC1WBWuWOrcupgDVTfjmf/DGuF4nk=; b=IWZglJtwb+fa+ZhvMiZGy5eKgJIPim+55X1j9b8r/QjLw9Wj6R3ttfd8xJokbwp7k/ 9sg8QY2W4BRIl6dVb6cP5rm/qOsTFgaQEQjvYSOkx8/KbYOvW1Xepgt0oWDk9R2ztxXo uVU5LUeI6AlsF1teVY+FNtJoo05PHXvO9T0Whz3K0x1oz/xENU9fNx80hCKd6QWZJRzJ 9h31jiYjqPIa5UpO0Potywi6h2fIKqZkazUzwFCh1iZhu3yLDUR2RXKZCjfQnbievR1P Al9OPZXKBzqHK4KA/QhyFIEyYzYWffpZzPx4GQVOOsxzYWUU/Av9f0q5zx7Ol1/MnaT/ Mukg== X-Gm-Message-State: AO0yUKXAwAvOprkSYV9WAtzatcnYgkjQ2BxPvnSFLRjKD7xGZpFKUMre TJIl99xMiPUIi+3XETHxucMg56NoDVY= X-Google-Smtp-Source: AK7set9IClrNeVgGgccPEdmaGEUiTZJRoE7wWZfi6WcjvNDL6UKFVdmrlxQN5RxeCsxuCg5usnd5HQ== X-Received: by 2002:a17:906:1450:b0:8af:ef00:b853 with SMTP id q16-20020a170906145000b008afef00b853mr25593274ejc.73.1678556333583; Sat, 11 Mar 2023 09:38:53 -0800 (PST) Received: from localhost.localdomain ([2a02:2f0e:c915:3800:d24b:dc4a:599b:7c80]) by smtp.gmail.com with ESMTPSA id p10-20020a170906614a00b008e7916f0bdesm1303986ejl.138.2023.03.11.09.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:38:53 -0800 (PST) From: Ovidiu Panait To: u-boot@lists.denx.de Cc: Ovidiu Panait , Michal Simek , Michal Simek Subject: [PATCH v2 4/5] microblaze: drop CONFIG_NEEDS_MANUAL_RELOC Date: Sat, 11 Mar 2023 19:38:37 +0200 Message-Id: <20230311173838.521804-4-ovpanait@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230311173838.521804-1-ovpanait@gmail.com> References: <20230311173838.521804-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.8 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. Reviewed-by: Michal Simek Signed-off-by: Ovidiu Panait --- (no changes since v1) 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"