From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D71CD3858410; Wed, 5 Jan 2022 03:27:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D71CD3858410 From: "i at maskray dot me" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/27924] ld.so: Support DT_RELR relative relocation format Date: Wed, 05 Jan 2022 03:27:40 +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.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i at maskray dot me 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: security- 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2022 03:27:41 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27924 --- Comment #15 from Fangrui Song --- (In reply to H.J. Lu from comment #14) > (In reply to Fangrui Song from comment #12) > > (In reply to H.J. Lu from comment #11) > > > The code doesn't work when DT_RELR is enabled in ld.so: > > >=20 > > > [...] > > > > > > The problem is that ELF_DYNAMIC_DO_RELR is down twice on ld.so. The = first > > > time is for RTLD_BOOTSTRAP. It needs to be fixed. > >=20 > > I noticed this (building ld.so itself with DT_RELR) but did not investi= gate > > it. Thanks for investigation! How to fix it? >=20 > See my patch. Thanks. Folded into https://sourceware.org/git/?p=3Dglibc.git;a=3Dshortlog;h=3Drefs/heads/maskr= ay/relr --=20 You are receiving this mail because: You are on the CC list for the bug.=