* coffgen.c (coff_write_symbol): Reindented. Changed to return

boolean, and changed written to unsigned int *.  Check error
	returns from called functions.
	(coff_write_alien_symbol): Likewise.
	(coff_write_native_symbol): Likewise.
	(coff_write_symbols): Likewise.  Reworked checks on whether to
	write symbol name to string table for clarity and to avoid core
	dumping when given a non COFF symbol.
	* libcoff-in.h (coff_write_symbols): Declare as returning boolean.
	* libcoff.h: Rebuilt.
	* coffcode.h (coff_write_object_contents): Check return value of
	coff_write_symbols.
This commit is contained in:
Ian Lance Taylor
1994-03-31 16:58:23 +00:00
parent d2d324f831
commit bfe8224f3e
3 changed files with 250 additions and 177 deletions

View File

@@ -1768,7 +1768,8 @@ coff_write_object_contents (abfd)
if (!coff_renumber_symbols (abfd))
return false;
coff_mangle_symbols (abfd);
coff_write_symbols (abfd);
if (! coff_write_symbols (abfd))
return false;
if (!coff_write_linenumbers (abfd))
return false;
coff_write_relocs (abfd);