From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E8943860770; Wed, 12 Oct 2022 14:32:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E8943860770 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665585168; bh=RXq1ng8Z4PlkSYMZ+5/XSiWOgVFimsZCw/rzR4MxXFI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oKV1Klbs+vPJKVocTE/ZQr4csrvyDR57f3T43F2HYM3aBzKfPmi254/L5s/3Z0oj1 r90ByVr1SV1OSAaXBs5n2pYMdSmjL1aLoqLW4mWx4TEB8Blp6mrjc7wIz2mkNwJp6b 4BsAapapY7uMEeTzRkkCTgkYXC50C+bNSJAVvz/8= From: "krebbel at linux dot ibm.com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29662] s390 glibc wrongly assumes GOT[0] is _DYNAMIC Date: Wed, 12 Oct 2022 14:32:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: krebbel at linux dot ibm.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: cc 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=3D29662 Andreas Krebbel changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |krebbel at linux dot ibm.c= om --- Comment #1 from Andreas Krebbel --- Actually our ABI document defines that the first GOT entry has to point at _DYNAMIC: The format and interpretation of the Global Offset Table is processor speci= fic. For s390x the symbol _GLOBAL_OFFSET_TABLE_ may be used to access the table.= The symbol refers to the start of the .got section. Two words in the GOT are reserved: =E2=80=A2 The word at _GLOBAL_OFFSET_TABLE_[0] is set by the linkage editor= to hold the address of the dynamic structure, referenced with the symbol _DYNAMIC. This= =20 allows a program, such as the dynamic linker, to find its own dynamic struc= ture without having yet processed its relocation entries. This is especially important for the dynamic linker, because it must initialize itself without relying on other programs to relocate its memory image. =E2=80=A2 The word at _GLOBAL_OFFSET_TABLE_[1] is reserved for future use. Please see: https://github.com/IBM/s390x-abi/releases/download/v1.6/lzsabi_s390x.pdf --=20 You are receiving this mail because: You are on the CC list for the bug.=