From 4175219298aa7428db899c2f7022146cf8482885 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 14 Jan 2010 21:16:52 +0000 Subject: [PATCH] gdb/ * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. Replace exec_entry_point call by bfd_get_start_address. --- gdb/ChangeLog | 5 +++++ gdb/solib-svr4.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fe3340969af..ee8385ee1cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-01-14 Jan Kratochvil + + * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. + Replace exec_entry_point call by bfd_get_start_address. + 2010-01-14 Jan Kratochvil Support Valgrind attachments broken by the PIE support. diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 6daf0dcca6d..826f8bf0da3 100644 --- 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 (); } -- 2.30.2