From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C1D338515F2; Sun, 11 Jul 2021 15:23:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C1D338515F2 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/27164] csu/libc-start.c should not call ARCH_APPLY_IREL in static pie mode Date: Sun, 11 Jul 2021 15:23:21 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools 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: 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 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: Sun, 11 Jul 2021 15:23:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27164 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #2 from H.J. Lu --- Glibc uses DT_XXX to handle relocations, including IFUNC relocations. Since there is no need to relocate static executable and there is no DT_XXX in st= atic executable, I added __rela_iplt_start/__rela_iplt_end to handle IFUNC in st= atic executable which doesn't need relocation. Since DT_XXX is used to handle relocations, including IFUNC relocations, in static PIE, linker shouldn't define __rela_iplt_start/__rela_iplt_end when DT_XXX is created. Please fix the lld bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=