From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5133B38493FD; Mon, 13 Feb 2023 19:30:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5133B38493FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676316639; bh=M9yQr+MY8gXpzp8NX5fy7sR/IMzhECJl3y9OSyHXrAc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=O7QHt4XSYE/nLxwNwwTW1aMfnCwr+uUf+0FNMomROq7OdOK0GJs6CdjDxOkZBvK6j bs3d+OIpkeXyq0rzDDymO7lSbQd5LLbASsJiJtlezmdWsPbIN0wCiIL138dXdZjCwL Na1T9uNQxX6oB11U2xS2kfJWk6X6W56zSU8H4p4E= From: "petelomax at ymail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30020] segfault in ld-linux after aug 2022 Date: Mon, 13 Feb 2023 19:30:38 +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: petelomax at ymail 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: 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=3D30020 --- Comment #4 from Pete Lomax --- Thank you, that is a massive step in the right direction, I think. Yes, that is what success should look like. I had (and meant it): Size of section headers: 64 (bytes) Number of section headers: 0 (64) Previous versions of readelf (I just checked, 3.5.0-54-generic) did not mistreat that 0 as 64. Anyway, I patched that e_shentsize to 0 which got readelf down to 2 complai= nts (vs 0 previously): readelf: Error: Size (0xb0) of section is not a multiple of its sh_entsize (0x10) readelf: Error: Corrupt DT_SYMTAB dynamic entry I've also got: LOAD 0x0000000000000228 0x0000000000400228 0x0000000000400228 and patching away that 40 made readelf happier, but spannered ld-linux-x86-64.so.2 ./p64 So, while that was probably wrong, it made readelf show the 10 dynamic sect= ion entries it used to, along with an 11th (NULL) which it never did before, and (also new) followe= d by ten times: 0000004004b0 000100000001 R_X86_64_64 readelf: Error: bad symbol ind= ex: 00000001 in reloc PS: There really are no section headers, and there never was any debug info= to be stripped. These headers all worked perfectly for years before August 2022. --=20 You are receiving this mail because: You are on the CC list for the bug.=