diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-03-31 16:58:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-03-31 16:58:23 +0000 |
commit | bfe8224f3e58132636e352fae6f3b943438fccb4 (patch) | |
tree | 41f7c2953ebca64829f49733d972f4a95dc6ff48 /bfd/coffcode.h | |
parent | d2d324f8310ce0c3bc21326f4c988591dbfd29c2 (diff) | |
download | gdb-bfe8224f3e58132636e352fae6f3b943438fccb4.zip gdb-bfe8224f3e58132636e352fae6f3b943438fccb4.tar.gz gdb-bfe8224f3e58132636e352fae6f3b943438fccb4.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 0f984fe..10cf9ff 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -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); |