From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC3883858D20; Sun, 14 Jan 2024 14:36:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC3883858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705243018; bh=V066bBg6l14yFDLN4Uxnrw/DtbcyNwaPwznqD9i6aNA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s+m1oSZsTWyXyVFIA2mfTGVPFXnLGPcTullBWe3QgUriWeJMppV0VchGniAB7qKt4 0lh8/d1cdM1Tzf2JfOjwd3TfifIvN6esG1tVy8qvkjg5tyPI/FB+3psrY0AT4UZHzI pGcd53PigbZYWvlZ00jVPP5fXdwh9qMT/GHg2JIs= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/11786] PIE support may not work for some PIEs Date: Sun, 14 Jan 2024 14:36:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.1 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=3D11786 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #16 from Hannes Domani --- (In reply to Sourceware Commits from comment #15) > The master branch has been updated by Simon Marchi : >=20 > https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git; > h=3Dbe2d111a878e1422c921226bc7714131a5c470fa >=20 > commit be2d111a878e1422c921226bc7714131a5c470fa > Author: Michael Spang > Date: Sun Aug 19 10:55:58 2018 -0400 >=20 > Fix debugging of stripped PIE executables with padded PT_TLS >=20=20=20=20=20 > Certain PIE executables produced by gold cannot be debugged by gdb af= ter > being stripped. GDB requires program headers of PIE executables to ma= tch, > and those checks may fail due to adjustments made during stripping. >=20=20=20=20=20 > One case of this occurs because strip recomputes the memsz of PT_TLS = and > does not add alignment, while gold does. This is another variant of PR > 11786, so apply the same fix of relaxing the program header matching. >=20=20=20=20=20 > gdb/ChangeLog: >=20=20=20=20=20 > PR gdb/11786 > * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields > for PT_TLS segments. >=20=20=20=20=20 > gdb/testsuite/ChangeLog: >=20=20=20=20=20 > PR gdb/11786 > * gdb.base/gcore-tls-pie.c: New file. > * gdb.base/gcore-tls-pie.exp: New file. Can this be closed? --=20 You are receiving this mail because: You are on the CC list for the bug.=