* xcoffread.c (read_xcoff_symtab, case C_FILE):

Set main_aux before using it.
This commit is contained in:
Jim Kingdon 1994-09-28 18:02:00 +00:00
parent fac75dfebb
commit 67b9f39403
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,8 @@
Wed Sep 28 08:59:14 1994 Jim Kingdon (kingdon@cygnus.com)
* xcoffread.c (read_xcoff_symtab, case C_FILE):
Set main_aux before using it.
* xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
* xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we were

View file

@ -1459,7 +1459,11 @@ read_xcoff_symtab (objfile, nsyms)
the symbol is ".file" and an auxent exists, otherwise use the symbol
itself. Simple enough. */
if (!strcmp (cs->c_name, ".file") && cs->c_naux > 0)
filestring = coff_getfilename (&main_aux);
{
bfd_coff_swap_aux_in (abfd, raw_auxptr, cs->c_type, cs->c_sclass,
0, cs->c_naux, &main_aux);
filestring = coff_getfilename (&main_aux);
}
else
filestring = cs->c_name;