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/coffgen.c | |
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/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 53aaf4f..a104887 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. */ |