summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-11-27 12:45:17 +0000
committerPhil Blundell <philb@gnu.org>2000-11-27 12:45:17 +0000
commitd71f672e69df99902fc4b76c2d6c4dd75640e22d (patch)
tree66e980865705b4f165d9bb7bc9b3b7407c97e533 /bfd/coffcode.h
parentbc7a577dc7781416ff8a6e8ea295c7999e1673a9 (diff)
downloadbinutils-gdb-d71f672e69df99902fc4b76c2d6c4dd75640e22d.tar.gz
2000-11-27 Philip Blundell <pb@futuretv.com>
* libcoff-in.h (coff_tdata): Add `strings_written' flag. (obj_coff_strings_written): New accessor macro for above. * libcoff.h: Regenerate. * cofflink.c (_bfd_coff_final_link): Say that we wrote the strings. * coffcode.h (coff_write_object_contents): No need to write out the string table if it's already been done.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index c5025fb52d1..a5721e0d2be 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -3798,7 +3798,7 @@ coff_write_object_contents (abfd)
return false;
}
#ifdef COFF_LONG_SECTION_NAMES
- else if (long_section_names)
+ else if (long_section_names && ! obj_coff_strings_written (abfd))
{
/* If we have long section names we have to write out the string
table even if there are no symbols. */