This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/11804] Fix -Wl,-z,relro gcore writer (+maybe reader)
- From: "rguenth at gcc dot gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 31 Aug 2010 12:52:04 -0000
- Subject: [Bug corefiles/11804] Fix -Wl,-z,relro gcore writer (+maybe reader)
- References: <20100710211433.11804.jan.kratochvil@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rguenth at gcc dot gnu dot org 2010-08-31 12:52 -------
In my gdb copy (7.0 based), the following looks suspicious:
if (dyn_tag == dyntag)
{
/* If requested, try to read the runtime value of this .dynamic
entry. */
if (ptr)
{
gdb_byte ptr_buf[8];
CORE_ADDR ptr_addr;
int got;
ptr_addr = dyn_addr + (buf - bufstart) + arch_size / 8;
^^^^^^^^^^^^^^^^^
if (ptr != NULL)
{
if (debug_solib)
fprintf_unfiltered (gdb_stdlog,
"elf_locate_base: unrelocated ptr addr %s\n",
paddress (target_gdbarch, ptr_addr));
I can see the dynamic section contents just fine at dyn_addr + (buf - bufstart).
OTOH a recent 7.1 tree looks much different (but has the same logic and
also doesn't work for me - but it lost the nice debugging stuff).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11804
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.