Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp880657pxb; Wed, 27 Oct 2021 14:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCb25CutbPloKNPZD1B5ra8J+MfY8xS5BwY82CFnHdFx0yxiwyUgrtRbZViFDEGIkI+kut X-Received: by 2002:a17:907:6e04:: with SMTP id sd4mr102531ejc.40.1635369725349; Wed, 27 Oct 2021 14:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369725; cv=none; d=google.com; s=arc-20160816; b=nsi2UBOBK6VGiUiSK0srO+Fx6Qw3sFtSo3P4PCEgWy5myGOy1U2PujWiTBOOmRRjUo CDf/Q8N/6VbLj5JyGJ23BzfzUWHWkEGTVYQVOAub/rUIBonFmG/Wq3SJZxuppJsX/Xws 6WyGLExzzgNBX7Bu8Xrw7GiyFARSutuvKurT51T8Lsylu3vulsG2VmdH4CpqnseJw1cs hv5qnQCFDYAK+QeRiw/l/+UrVxZSlxvW2lmAqhIbwzLZCWBNpJgw7dQYbpyTflA4aoYd 87Tb5tMCb/HtIC0VDd4WSsMwPA7hjEtjbiseJY7O+P/LQdfDW2tqZVmfh7Q9+ZBxZyEN doUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=1ff9+0y1MHIeL8Efv0nr7pFAO4Kp4ihIc+a4TFjC5mM=; b=vfY/bVMMCzmG9GyQh7Y20SiPIzdq1WtpQsaEWYiYd8U0tcQlAuHTjMMLsirYpMCwPj qaa2T3B7uNkXPaH0eofkZmaVwGU6RmYo96CpNJQZhLSuo3VsfRXtf4Fb5Kiq3GxLRslQ eC+jjx2nJugNihBp7N4A3YCCGi9L5aUWC8RzvFSR9BPY2MILJYOoNEB57wQFk5ACaS58 N37lyhfvQ/ayM24vHem+ThKGCz/GKE0WotuEes3j+ycgyaAzavyLOlf39owvDYzX4R0R HyvUAFw7hDv7sNSK+MfWETwk+wyAPPwzG0vQDfkNbwnh9QSnwttjhqbYEJ8Gf+u3L0oF iMKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw1si471602ejc.370.2021.10.27.14.21.41; Wed, 27 Oct 2021 14:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238814AbhJ0Jr6 (ORCPT + 97 others); Wed, 27 Oct 2021 05:47:58 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:35516 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232462AbhJ0Jr4 (ORCPT ); Wed, 27 Oct 2021 05:47:56 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HfP210Fxmz1qwxk; Wed, 27 Oct 2021 11:45:29 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HfP2068n6z1qqkB; Wed, 27 Oct 2021 11:45:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id aM9GS1BKj2Zb; Wed, 27 Oct 2021 11:45:27 +0200 (CEST) X-Auth-Info: C2/eG4m35MkI9B3Bxg1aiLH7XdmCmAifjuwSKAmQZlq5VktfNATtjZ8fcmt6k9ZP Received: from igel.home (ppp-46-244-163-205.dynamic.mnet-online.de [46.244.163.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 27 Oct 2021 11:45:27 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 591102C2200; Wed, 27 Oct 2021 11:45:27 +0200 (CEST) From: Andreas Schwab To: Alexandre Ghiti Cc: Palmer Dabbelt , alex@ghiti.fr, Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Palmer Dabbelt Subject: Re: [PATCH] RISC-V: Make CONFIG_RELOCATABLE user selectable References: <20211026212847.43108-1-palmer@dabbelt.com> <87mtmuaodc.fsf@igel.home> X-Yow: It's the land of DONNY AND MARIE as promised in TV GUIDE! Date: Wed, 27 Oct 2021 11:45:27 +0200 In-Reply-To: (Alexandre Ghiti's message of "Wed, 27 Oct 2021 10:58:44 +0200") Message-ID: <87ee86ajig.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Okt 27 2021, Alexandre Ghiti wrote: > On Wed, Oct 27, 2021 at 10:03 AM Andreas Schwab wrote: >> >> On Okt 26 2021, Palmer Dabbelt wrote: >> >> > +config RELOCATABLE >> > + bool "Build a relocatable kernel" >> > + depends on MMU && 64BIT && !XIP_KERNEL >> > + help >> > + This builds a kernel as a Position Independent Executable (PIE), >> > + which retains all relocation metadata required to relocate the >> > + kernel binary at runtime to a different virtual address than the >> > + address it was linked at. >> > + Since RISCV uses the RELA relocation format, this requires a >> > + relocation pass at runtime even if the kernel is loaded at the >> > + same address it was linked at. >> >> When in doubt, do what? > > Then do not enable. Please add that to the help string. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."