[patch] PIEb: func descriptor (ppc64) regression fix
Jan Kratochvil
jan.kratochvil@redhat.com
Sun Jan 10 23:00:00 GMT 2010
Hi,
this was a real regression for ppc64 by (still not checked-in):
[patch 08/15] PIE: Base functionality
http://sourceware.org/ml/gdb-patches/2009-11/msg00175.html
Thanks,
Jan
2010-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
* solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
Replace exec_entry_point call by bfd_get_start_address.
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1620,13 +1620,15 @@ static CORE_ADDR
svr4_exec_displacement (void)
{
int found;
+ /* ENTRY_POINT is a possible function descriptor - before
+ a call to gdbarch_convert_from_func_ptr_addr. */
CORE_ADDR entry_point;
if (exec_bfd == NULL)
return 0;
if (target_auxv_search (¤t_target, AT_ENTRY, &entry_point) == 1)
- return entry_point - exec_entry_point (exec_bfd, ¤t_target);
+ return entry_point - bfd_get_start_address (exec_bfd);
return svr4_static_exec_displacement ();
}
More information about the Gdb-patches
mailing list