summaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
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/coffgen.c
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/coffgen.c')
-rw-r--r--bfd/coffgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 53aaf4fbc5..a1048874e9 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -140,9 +140,9 @@ make_a_section_from_file (abfd, hdr, target_index)
return_section->lineno_count = hdr->s_nlnno;
return_section->userdata = NULL;
return_section->next = (asection *) NULL;
- return_section->flags = bfd_coff_styp_to_sec_flags_hook (abfd, hdr, name);
-
return_section->target_index = target_index;
+ return_section->flags = bfd_coff_styp_to_sec_flags_hook (abfd, hdr, name,
+ return_section);
/* At least on i386-coff, the line number count for a shared library
section must be ignored. */