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.
This commit is contained in:
Phil Blundell
2000-11-27 12:45:17 +00:00
parent bc7a577dc7
commit d71f672e69
5 changed files with 19 additions and 1 deletions

View File

@@ -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. */