diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-08-18 05:59:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-08-18 05:59:47 +0000 |
commit | bb90d265cc907b03aef953f2cecdc3a6cfe30bcd (patch) | |
tree | 31f740240d3e6921e485894037c18cd1edeaacde /bfd/coffgen.c | |
parent | bffd771fba79e3c8f03856c7d52f9119635a56aa (diff) | |
download | gdb-bb90d265cc907b03aef953f2cecdc3a6cfe30bcd.tar.gz |
comment changes from Donn Terry, and indentation changes
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 88ba6a5927d..53aaf4fbc51 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -594,6 +594,7 @@ fixup_symbol_value (abfd, coff_symbol_ptr, syment) syment->n_scnum = N_UNDEF; syment->n_value = 0; } + /* FIXME: Do we need to handle the absolute section here? */ else { if (coff_symbol_ptr->symbol.section) @@ -1746,19 +1747,25 @@ coff_get_normalized_symtab (abfd) } else { - /* ordinary short filename, put into memory anyway */ + /* Ordinary short filename, put into memory anyway. The + Microsoft PE tools sometimes store a filename in + multiple AUX entries. */ if (internal_ptr->u.syment.n_numaux > 1 && coff_data (abfd)->pe) { - internal_ptr->u.syment._n._n_n._n_offset = (long) - copy_name (abfd, (internal_ptr + 1)->u.auxent.x_file.x_fname, - internal_ptr->u.syment.n_numaux * symesz); + internal_ptr->u.syment._n._n_n._n_offset = + ((long) + copy_name (abfd, + (internal_ptr + 1)->u.auxent.x_file.x_fname, + internal_ptr->u.syment.n_numaux * symesz)); } else { - internal_ptr->u.syment._n._n_n._n_offset = (long) - copy_name (abfd, (internal_ptr + 1)->u.auxent.x_file.x_fname, - FILNMLEN); + internal_ptr->u.syment._n._n_n._n_offset = + ((long) + copy_name (abfd, + (internal_ptr + 1)->u.auxent.x_file.x_fname, + FILNMLEN)); } } } |