From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F6813858428; Thu, 22 Feb 2024 23:26:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F6813858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708644387; bh=XqsQjtnnaHXUKz+o+aE53zlcCbgQMaQbOAMXF0exy7E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LUFnHGXsWa3i8BF4qYUlKFYdeYetRXBJGD2LgBre7YoSxG9+mhXS32+ECyPZibvpA U2u1lOWeU5rtRBdDHKsbICMdhL2OYauj2thSGN0VfmDO6SMZKljePFKVEd7Fzu0eSg /pGkWjehkYtiU43L+kfUQ4VYjmCIE1f/RSOsDjvo= From: "palmer at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31317] [RISCV] static PIE crashes during self relocation Date: Thu, 22 Feb 2024 23:26:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.39 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palmer at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31317 --- Comment #5 from Palmer Dabbelt --- (In reply to Andreas Schwab from comment #4) > No, l_relocated is probably the correct condition. The point is that > l_scope is always initialized, and it is only null because of undefined > behaviour. OK, that makes sense. IIUC the relocated check short-circuits that UB, so = it'd just be useless to also check l_scope? Either way I think we're far enough along for a real patch, I sent https://inbox.sourceware.org/libc-alpha/20240222232400.6326-1-palmer@rivosi= nc.com/ Thanks! --=20 You are receiving this mail because: You are on the CC list for the bug.=