Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp857331pxb; Wed, 27 Oct 2021 13:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKCZub5btbFBf5Sg0XmCQvqFFscOQQKOHlhwzrbZ6Vx1fgY8PPjg88EbDjxVVmOTJCcr8t X-Received: by 2002:a17:906:6087:: with SMTP id t7mr40856601ejj.206.1635367952182; Wed, 27 Oct 2021 13:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635367952; cv=none; d=google.com; s=arc-20160816; b=HqLDyXnmMjfeUeL0KAjQKBi4l9GWIKZB71IlTTruqHCdl9Fh5+Obnpz2PbDreSNXV4 Dlo01HtDtkJKUCBXfB0wg7tDoSRIKHnXvFTkwqP+CNYIfOjb3i8UamQ/eBLYEX7h3kLy zHyr7PMI+K0RtrZezBjcBwPF0PGcSv2D+YtbmYTFXHJ0JkbvcNbgChjIJRoFAf9S2pru ZiLS3mPWqDfzHHk1bURov0hlvXQdoj1B4qDHP517rYbKNgVflqzyqewwHDL8LvRw2vkq 8F4Ycw9+QoDJFJi9wuncCmNsY4Q+kFriJ3dzpnly/VD0yxfWdmhO3qFgEN9GHcwIsD7v DdWQ== 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=cQtnLZV1H4k1SrRZs+r/fn2h8bXyA+LT40dTUrE2pEs=; b=eG2lYFsV8ECtahbB3NBG2efYRe1pnZxx+p2ekW0GT34CEwItKrJ/7fet6nrL7nk8fE Trt2wRoCN6MbIllhTUfbYYuSgRIesnV8qbsGCiLFTKge9Nd+Rv5EfiVG8eciAuMEawkK VzF6lFEAbQyLsHwxf3Thxbwbi3Teb2wLEvp+GQxe6RbYJMykQLQ0PSWMGQT0wT0lvUSm lpNRam3FtWsBwymBT8FZsj+LcDOTXpKUhS+VhoJ5tajDfrneZTjw0wgz4MhZiZsYg4aF bcUJWT7r2KJWaMlQq7ZCnhZM6OpSo63TPkekv4RxzYQwYqDSeQvhgGMAy2mjgUcRQIrb vHTA== 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 r18si1142740edx.146.2021.10.27.13.52.08; Wed, 27 Oct 2021 13:52:32 -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 S237071AbhJ0IDy (ORCPT + 99 others); Wed, 27 Oct 2021 04:03:54 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:43198 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234570AbhJ0IDQ (ORCPT ); Wed, 27 Oct 2021 04:03:16 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HfLhx2vHqz1qwdr; Wed, 27 Oct 2021 10:00:33 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HfLhx1z0dz1qqkG; Wed, 27 Oct 2021 10:00:33 +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 lnOeicQQ8Db8; Wed, 27 Oct 2021 10:00:32 +0200 (CEST) X-Auth-Info: x+8QjqTD1V1ACKg/WDk8SUlDVnu/BmJKfvIHSrNqoqQSSJ4hj/hMiZjB0S6pDmtP 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 10:00:32 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 901CE2C0C9B; Wed, 27 Oct 2021 10:00:31 +0200 (CEST) From: Andreas Schwab To: Palmer Dabbelt Cc: 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> X-Yow: My ELBOW is a remote FRENCH OUTPOST!! Date: Wed, 27 Oct 2021 10:00:31 +0200 In-Reply-To: <20211026212847.43108-1-palmer@dabbelt.com> (Palmer Dabbelt's message of "Tue, 26 Oct 2021 14:28:47 -0700") Message-ID: <87mtmuaodc.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 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? 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."