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 | 417335159be2665e8257878719168349ca39b607 (patch) | |
tree | 38af74ecba202e9be6485b398432d512195cdd16 /bfd/libcoff.h | |
parent | 1865dcb816777a2805861caebdb8439db213789d (diff) | |
download | gdb-417335159be2665e8257878719168349ca39b607.zip gdb-417335159be2665e8257878719168349ca39b607.tar.gz gdb-417335159be2665e8257878719168349ca39b607.tar.bz2 |
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 5b3d703..ffa06bf 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)) |