Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5028580rwd; Tue, 30 May 2023 13:32:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7m5qbiJWhoYYO0nHcERLLtH8pUX4wGj+E22bMlBaRJMqceABwLtMafUKzlVA/0F04P2z0u X-Received: by 2002:a05:6a21:6806:b0:10c:6:61d1 with SMTP id wr6-20020a056a21680600b0010c000661d1mr3233747pzb.39.1685478753856; Tue, 30 May 2023 13:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685478753; cv=none; d=google.com; s=arc-20160816; b=ZgJL/y53B33IRBvrEf1TZcZTVilm/rLQpvwfXATP9qL3kKgsmO403OUixIfqHqzpiV Dk6U7Qk074R2g2/DICtX7ZqDM1184vJDveZWzAYAtX0RdSn/ntLhMF1f50LUF4LtFDNs Oov8zm5FlfFYceTxYjvA1wm9L1bfFGPVG+NtjYEnlZS/LDgF4v6+Fb8XueyMzKKznOr6 gIsRB4/ywI7p7tkkiCzekNs20g14jeuV+VU1AXAIUKwvVib27xEZaoxLAOKbL4WOjCYP tWD5R/0NzwMiocUGUkqOT2AN4DNoYdgpOAK4VYI6ZNyeEKAmIzVY9xF7wpN5PnpZxmDb o2HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4DN+utQWh38lU/aZ6R0seCQUmXbUMKSQnd7XfU2PdBw=; b=l+Ker7hwcgrIMy5trO2Pr2d20tn/RZCJqE2Jx+WM2BIknRUKZahw8KI/XjxcrhTmJi 4lHGNDeY2ugWiPG0gev9nHysYEPgz/IxWKNRdj68vpFXtOO2/4oZPteAWKw4e5MXGujf tGAcwKWA7tCKaSisTaV6x5i4gFlFcL8h0/+WND0cM028vGP0UiY5EIzxpECzcl0CjImj XdKuPGgbN3b/mK3wgq//UxqDs108CQ3bpEiAmkSj/wvulDicpZ4345Zq9BM9ZC3B37J7 Rnc4ujdBd7Kh26cRwQIrzfqg+8ps3fkVZzYiXQMO0/jT3CqZMYyAyHJdsO2wIHJMqRX9 xoUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hNT5Aoq3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a637516000000b0052d7238ad55si2710846pgc.793.2023.05.30.13.32.21; Tue, 30 May 2023 13:32:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hNT5Aoq3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231499AbjE3UXC (ORCPT + 99 others); Tue, 30 May 2023 16:23:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231199AbjE3UXA (ORCPT ); Tue, 30 May 2023 16:23:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A073F7 for ; Tue, 30 May 2023 13:23:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE73962A33 for ; Tue, 30 May 2023 20:22:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 581A6C433EF; Tue, 30 May 2023 20:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685478179; bh=4DN+utQWh38lU/aZ6R0seCQUmXbUMKSQnd7XfU2PdBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hNT5Aoq3zxhrXOaYVXhGMDLVtwHCvTOzsTW0ypZB6kAVw7iLdTToHxM8bU2jg69+y oIegGjzECGgRDYouWDmaa8ILaVM86EJgxsig8N+1y/p48kjte5LUzXfTwoLqreO7cw 4nv4Fn2LzzAboQN6t1GTPWJZHUoCRp1ySQF9a48qy3Bd7daj5Gn3bMLpF+5lW6nhbs txu+OnlJw2v3Sk5XhuEmAjM4IaF31uwmqvpSwayudVkRrmVDTyzYKoi8Wg+WkSsOea vNablcbJ4rwzMIl1RWSHlWZYvNs7XXxkXffTzDMKn3ty26puoZqn74fBrK9qgfyUz0 pzVQCGbEx3UAg== Date: Tue, 30 May 2023 21:22:54 +0100 From: Conor Dooley To: Alexandre Ghiti Cc: Alexandre Ghiti , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andreas Schwab , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -fixes] riscv: Fix relocatable kernels with early alternatives using -fno-pie Message-ID: <20230530-atrocious-control-bcb37de558fc@spud> References: <20230528-darkness-grandly-6cb9e014391d@spud> <20230528-uneatable-earpiece-3f8673548863@spud> <20230529-skillet-quarters-3fbc3b6edb3a@spud> <41e57bb9-ce0c-7772-abeb-5c01d5ec19bb@ghiti.fr> <20230530-polka-trifle-7ccd7a093099@wendy> <92d4aaa8-a1ed-74e1-3a22-df9be1ca1e4a@ghiti.fr> <20230530-hatchery-unifier-64d7a2ffe0d0@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Axts1iAZiGz20SHU" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Axts1iAZiGz20SHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 30, 2023 at 08:04:17PM +0200, Alexandre Ghiti wrote: >=20 > Ahah, I think we found the culprit! >=20 > With CONFIG_RELOCATABLE, vmlinux is actually stripped from all the > relocations (so that it can be shipped) and vmlinux.relocs is what you > should use instead, since it is just a copy of vmlinux before the > removal of the relocations! That probably makes us both eejits for not realising sooner... Tested-by: Conor Dooley # booted on nezha & un= matched Thanks for your patience here Alex. --Axts1iAZiGz20SHU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHZbHgAKCRB4tDGHoIJi 0jaVAP9PHoU5a5+zRhdA/FBl5TFJ8x8d2o/6P5u3gk9yQsxuzAD/dLh6VZFvWFlO ETHZVpo1mS3y+rIvKBc3kHQ3cOpwGwY= =uZdZ -----END PGP SIGNATURE----- --Axts1iAZiGz20SHU--