From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1329 invoked by alias); 5 Sep 2013 20:41:31 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 1295 invoked by uid 48); 5 Sep 2013 20:41:31 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/11786] PIE support may not work for some PIEs Date: Thu, 05 Sep 2013 20:41:00 -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: dje at google dot com X-Bugzilla-Status: UNCONFIRMED 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: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00320.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=11786 dje at google dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ccoutant at google dot com, | |dje at google dot com --- Comment #1 from dje at google dot com --- Another variant that needs to be handled: Gold sets PF_W for the GNU_RELRO segment and strip removes it. This causes the following to fail: bash$ gdb binary.unstripped core.from.stripped svr4_exec_displacement thinks the core doesn't match the binary (because of a program segment header mismatch in the flags field) and the addresses from the core file are not applied. I think it's reasonable to ignore the flags field for the purposes of this test, but maybe I'm missing something. -- You are receiving this mail because: You are on the CC list for the bug.