This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tdep/1354: Eliminate CALL_DUMMY_ADDRESS from ppc64 linux


>Number:         1354
>Category:       tdep
>Synopsis:       Eliminate CALL_DUMMY_ADDRESS from ppc64 linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 27 00:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
PPC64 GNU/Linux defines call dummy address thus:

/* On 64-bit PowerPC GNU/Linux, the ELF header's e_entry field is the
   address of a function descriptor for the entry point function, not
   the actual entry point itself.  So to find the actual address at
   which execution should begin, we need to fetch the function's entry
   point from that descriptor.  */
static CORE_ADDR
ppc64_call_dummy_address (void)
{
  return ppc64_desc_entry_point (entry_point_address ());
}

The generic code should instead apply CONVERT_FROM_FUNC_PTR_ADDR to entry_point_address (assuming that entry_point_address is correctly re-located).
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]