* 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.
This commit is contained in:
parent
32399d323e
commit
9da4c5d130
3 changed files with 82 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue