This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [davidm@napali.hpl.hp.com: readelf question]
- From: Nick Clifton <nickc at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 26 Jun 2003 13:38:10 +0100
- Subject: Re: [davidm@napali.hpl.hp.com: readelf question]
- References: <200306240201.h5O21c409871@magilla.sf.frob.com>
Hi Roland,
>> Would you like to contribute a patch that does this ?
>
> Well if you're going to make such callous threats to my life and the
> lives of my pets, I guess I'll just have to comply. I don't want
> any trouble.
Darn, I guess that means I'll have to rescind the contract on tiddles
then.
> 2003-06-23 Roland McGrath <roland@redhat.com>
>
> * readelf.c (loadaddr): Variable removed.
> (dynamic_info, version_info): Fix type long -> bfd_vma.
> (program_headers): New variable.
> (get_program_headers): New function, broken out of
> process_program_headers.
> (process_program_headers): Call it. Don't set `loadaddr'.
> (slurp_ia64_unwind_table): Use get_program_headers.
> (process_corefile_note_segments): Likewise.
> (offset_from_vma): New function.
> (process_relocs, process_dynamic_segment): Call that instead of
> subtracting `loadaddr'.
> (process_version_sections, process_symbol_table): Likewise.
> (process_mips_specific): Likewise.
Approved and applied. It does the job very nicely! :-)
Cheers
Nick