This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11786] PIE support may not work for some PIEs
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 06 Sep 2013 16:03:42 +0000
- Subject: [Bug gdb/11786] PIE support may not work for some PIEs
- Auto-submitted: auto-generated
- References: <bug-11786-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=11786
--- Comment #7 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Would it be reasonable to check NT_GNU_BUILD_ID, and skip the Phdr check
entirely on a match?
(In reply to Jan Kratochvil from comment #6)
> Differently than... bfd ld? gold vs. ld executables are a different build
> which cannot match / is not guaranteed to match.
The flow here (Google b/10274851) is:
(gold-linked, PIE) unstripped -> "strip -g" -> stripped -> core
gdb stripped core # works, but no debug info :-(
gdb unstripped core # fails to relocate the binary :-(
Gold and strip do not agree on p_flags and p_align of GNU_RELRO,
but the "unstripped" and "stripped" *are* exact match.
--
You are receiving this mail because:
You are on the CC list for the bug.