From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 757CD3858CDB; Sat, 8 Oct 2022 01:28:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 757CD3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665192506; bh=jf5xanCO6n7Q6A3Aua+A5fYSQf/J1hbdUEtJ9yTJ24g=; h=From:To:Subject:Date:From; b=gv7GUDqrd9p2WKYXtnbexg68iHi3uUDzJiI5QPILODfmRTc8yBG/CTRsBTqcoPFb/ 1QK39vSXEd5Zb9MxeKuNmj3FhxInMgiI1CY4RYATmWDE70LoVwb9XMfBecqGoqJt5S fdtbmYxbNpPeq2v3hDGlaOCvPnSpCawUF9Z+B/J8= From: "rui314 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29662] New: s390 glibc wrongly assumes GOT[0] is _DYNAMIC Date: Sat, 08 Oct 2022 01:28:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rui314 at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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=3D29662 Bug ID: 29662 Summary: s390 glibc wrongly assumes GOT[0] is _DYNAMIC Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: rui314 at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- The following piece of code in glibc/s390-64 assumes that the first entry of .got is the address of .dynamic. There's no such guarantee in the psABI, so= it is arguably wrong. It just happens that GNU ld does that. https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/s390/s390-64= /dl-machine.h;h=3D74be0552dc42246df8ee24f871a2391798e3441b;hb=3DHEAD#l50 We had very similar code for ARM64, but that has been replaced in https://sourceware.org/git/?p=3Dglibc.git;a=3Dcommitdiff;h=3D43d06ed218fc8b= e58987bdfd00e21e5720f0b862. I think we want to do the same thing for s390. I noticed this issue when porting my mold linker to s390x. --=20 You are receiving this mail because: You are on the CC list for the bug.=