Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 626E417FFF for ; Tue, 20 Jun 2023 20:22:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B0CC433C0; Tue, 20 Jun 2023 20:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687292567; bh=w7w3SFTWbViJUJYrEq3MbkerW9/irnfhy/TKE1nu0kw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oSsD40Z3JoJI0m//pg9xtA9cadY8q9NsbFZdKWbOxhyCXNqQ97LyfrfG5Hapj+daZ soq+jqW4SE0A4OnOU8ayCiYRT9oI8P4UwwPgZPr1miTu1Cq1uk+h7C0zD7sI+OagqL PoSpOSoPm8KpinvP/DYK+iQoXzQ3wIqXdjsfuf9OwZ4PAAP5g5k1gGsbcqGirxN50k IGbGxwO6tCboiEFolb1fgTHGvMu8z/vVSGu8THa5m4tmznWC85+ZAgB90M0bmOFc+I EFElGQhLPQkRDPXRqQ5neBflewTWPc2JbmxOcN2y0YMJ+yvJCWh7JbD1FSAqRcDi4s /qTQWDgjUdFtw== Date: Tue, 20 Jun 2023 21:22:43 +0100 From: Conor Dooley To: Palmer Dabbelt Cc: ndesaulniers@google.com, falcon@tinylab.org, guoren@kernel.org, linux-riscv@lists.infradead.org, npiggin@gmail.com, Paul Walmsley , paulburton@kernel.org, vincent.chen@sifive.com, tim.bird@sony.com, llvm@lists.linux.dev Subject: Re: [PATCH v3] RISC-V: Enable dead code elimination Message-ID: <20230620-hull-boxy-63d71a9c376d@spud> References: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9LpfEV1HEiJhq2XX" Content-Disposition: inline In-Reply-To: --9LpfEV1HEiJhq2XX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 20, 2023 at 01:17:26PM -0700, Palmer Dabbelt wrote: > On Tue, 20 Jun 2023 13:13:06 PDT (-0700), ndesaulniers@google.com wrote: > > On Wed, May 17, 2023 at 04:29:36PM +0800, Zhangjin Wu wrote: > > > Select CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION for RISC-V, allowing > > > the user to enable dead code elimination. In order for this to work, > > > ensure that we keep the alternative table by annotating them with KEE= P. > > >=20 > >=20 > > Just cross referencing the report from Palmer against v2; I see orphan > > section warnings from the linker related to the EFI stub when building > > allmodconfig with this patch applied. > >=20 > > v2: thread for reference. > > https://lore.kernel.org/linux-riscv/CAKwvOdmsgMN5oQpDLh12D0X-CfQDtHC-Et= xHcBnADkhnyitMKQ@mail.gmail.com/ >=20 > Sorry for replying to the v2, I'm marking that as superseeded in patchwor= k. > IIUC it is a real issue on your end too? I'm also not 100% sure about the > hang, I just let LLD cook for about 10 minutes before I noticed it was st= ill > running and posted. Repeating myself for the sake of the archives or w/e, two different submitters with differing version numbers. The v2 from Jisheng is more recent than the v3 here from Zhangjin, they agreed in this mail thread to merge their work. Cheers, Conor. --9LpfEV1HEiJhq2XX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZJIKkwAKCRB4tDGHoIJi 0kisAQDhsmEvyojjUjLcr2DhngYymr7Gg4n3GQRg9wqofZJ0cgD/R6g2DroNboBz SPcUBxBi7zt/xuIYqlNF7rvPD94k9g8= =cihs -----END PGP SIGNATURE----- --9LpfEV1HEiJhq2XX--