This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PE/COFF propper _raw_size
- From: Brian Ford <ford at vss dot fsi dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 9 Apr 2003 16:55:32 -0500 (CDT)
- Subject: Re: PE/COFF propper _raw_size
Sorry to follow up my own post.
On Wed, 9 Apr 2003, Brian Ford wrote:
> I believe the correct place to do this is in coffgen.c
> (make_a_section_from_file), but I hate to introduce a COFF_WITH_PE ifdef
> there. (Incidentally, if bfd is supposed to support a super-bfd that
> works with all formats, how can we have ifdef code at all?) Another
> alternative would be to post process the sections in peicode.h
> (pe_bfd_object_p).
>
After further review, I think the correct place to do this is peicode.h
(coff_swap_scnhdr_in). I am working on a patch, but the following still
applies...
> I am still trying to get my feet wet in this mass of code. Just trying
> to figure out which code is actually used for my particular target
> seems very challenging. So, I may be off base on the proposed
> locations for this change. Any comments on the best place to
> do this, or on the proposed method will be greatly appreciated. Thanks.
>
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444