summaryrefslogtreecommitdiff
path: root/bfd/libcoff.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-07 02:11:54 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-07 02:11:54 +0000
commit4c477578bb460a6a26a2d8cbdd45d83d1a843360 (patch)
tree8045c6fadabc5e622da6aa727d3fc317688807e8 /bfd/libcoff.h
parentd6ec7a2f3cb036fafe1067b0af04e6fbbb7d733f (diff)
downloadbinutils-redhat-4c477578bb460a6a26a2d8cbdd45d83d1a843360.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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index 5b3d703d11..ffa06bf554 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))