diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-07 02:11:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-07 02:11:54 +0000 |
commit | 87a57967121f465644f77a871fb52cd99952ed16 (patch) | |
tree | 2265852fca34668b626af171bbd7ecb358312a7b /bfd/libcoff.h | |
parent | 9189d2cb56b461badd7ee0642e3b3a43bdf145b3 (diff) | |
download | gdb-87a57967121f465644f77a871fb52cd99952ed16.tar.gz |
1999-09-06 Donn Terry <donn@interix.com>
* coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
version. Move COFF_WITH_PE specific code to new version.
(stype_to_sec_flags): Likewise. Add section parameter.
* coffgen.c (make_a_section_from_file): Set target_index before
calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
* libcoff.h: Rebuild.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r-- | bfd/libcoff.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h index 5b3d703d119..ffa06bf5546 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -739,7 +739,8 @@ typedef struct flagword (*_bfd_styp_to_sec_flags_hook) PARAMS (( bfd *abfd, PTR internal_scnhdr, - const char *name)); + const char *name, + asection *section)); void (*_bfd_set_alignment_hook) PARAMS (( bfd *abfd, asection *sec, @@ -892,8 +893,9 @@ typedef struct #define bfd_coff_mkobject_hook(abfd, filehdr, aouthdr)\ ((coff_backend_info (abfd)->_bfd_coff_mkobject_hook) (abfd, filehdr, aouthdr)) -#define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name)\ - ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook) (abfd, scnhdr, name)) +#define bfd_coff_styp_to_sec_flags_hook(abfd, scnhdr, name, section)\ + ((coff_backend_info (abfd)->_bfd_styp_to_sec_flags_hook)\ + (abfd, scnhdr, name, section)) #define bfd_coff_set_alignment_hook(abfd, sec, scnhdr)\ ((coff_backend_info (abfd)->_bfd_set_alignment_hook) (abfd, sec, scnhdr)) |