mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user