This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: provide pass-through value in bfd_elf_bfd_from_remote_memory
- From: Roland McGrath <roland at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: Jim Blandy <jimb at redhat dot com>, binutils at sources dot redhat dot com
- Date: Wed, 21 May 2003 14:32:25 -0700
- Subject: Re: PATCH: provide pass-through value in bfd_elf_bfd_from_remote_memory
> Yes, but while you're there can the can you please also expunge that
> ehdr_vma parameter so that this uses a normal read() function that takes
> an offset.
The function in question reads from inferior virtual memory addresses, not
positions in any file. EHDR_VMA is needed not only to locate the ELF
header for reading, but to do other address calculations in making sense of
the data.