diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-10-22 00:51:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-10-22 00:51:53 +0000 |
commit | 9da4c5d13035754ce8cdd2435b5a763ced2313bb (patch) | |
tree | 62f72c30794ee4594926bb7b3b52e6ae51346b1b /gas/ecoff.c | |
parent | 32399d323e032fbed908dcf35f13c95d1e429beb (diff) | |
download | gdb-9da4c5d13035754ce8cdd2435b5a763ced2313bb.zip gdb-9da4c5d13035754ce8cdd2435b5a763ced2313bb.tar.gz gdb-9da4c5d13035754ce8cdd2435b5a763ced2313bb.tar.bz2 |
* config/tc-mips.c (md_pseudo_table): If OBJ_ELF, handle .section.
(s_elf_section): New static function.
* ecoff.c (ecoff_build_symbols): Don't abort if we don't recognize
the section when setting the storage class; default to sc_Data.
Diffstat (limited to 'gas/ecoff.c')
-rw-r--r-- | gas/ecoff.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gas/ecoff.c b/gas/ecoff.c index a064406..fbd8683 100644 --- a/gas/ecoff.c +++ b/gas/ecoff.c @@ -3953,7 +3953,12 @@ ecoff_build_symbols (backend, buf, bufend, offset) else if (seg == &bfd_abs_section) sc = sc_Abs; else - abort (); + { + /* This must be a user named section. + This is not possible in ECOFF, but it + is in ELF. */ + sc = sc_Data; + } sym_ptr->ecoff_sym.asym.st = (int) st; sym_ptr->ecoff_sym.asym.sc = (int) sc; @@ -5153,7 +5158,7 @@ ecoff_generate_asm_lineno (filename, lineno) ecoff_generate_asm_line_stab(filename, lineno); */ - if (strcmp (current_stabs_filename, filename)) + if (current_stabs_filename == (char *)NULL || strcmp (current_stabs_filename, filename)) { add_file (filename, 0); generate_asm_lineno = 1; |