diff options
Diffstat (limited to 'contrib/binutils/gas/config/obj-ecoff.c')
-rw-r--r-- | contrib/binutils/gas/config/obj-ecoff.c | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/contrib/binutils/gas/config/obj-ecoff.c b/contrib/binutils/gas/config/obj-ecoff.c index 27194a0..767dc58 100644 --- a/contrib/binutils/gas/config/obj-ecoff.c +++ b/contrib/binutils/gas/config/obj-ecoff.c @@ -1,5 +1,6 @@ /* ECOFF object file format. - Copyright (C) 1993, 94, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 1993, 94, 95, 96, 97, 98, 99, 2000 + Free Software Foundation, Inc. Contributed by Cygnus Support. This file was put together by Ian Lance Taylor <ian@cygnus.com>. @@ -81,7 +82,11 @@ const pseudo_typeS obj_pseudo_table[] = /* Other ECOFF directives. */ { "extern", ecoff_directive_extern, 0 }, + +#ifndef TC_MIPS + /* For TC_MIPS, tc-mips.c adds this. */ { "weakext", ecoff_directive_weakext, 0 }, +#endif /* These are used on Irix. I don't know how to implement them. */ { "bgnb", s_ignore, 0 }, @@ -232,14 +237,14 @@ ecoff_frob_file () alpha_frob_ecoff_data (); if (! bfd_ecoff_set_gp_value (stdoutput, alpha_gp_value)) - as_fatal ("Can't set GP value"); + as_fatal (_("Can't set GP value")); gprmask = alpha_gprmask; fprmask = alpha_fprmask; #endif if (! bfd_ecoff_set_regmasks (stdoutput, gprmask, fprmask, cprmask)) - as_fatal ("Can't set register masks"); + as_fatal (_("Can't set register masks")); } } @@ -256,8 +261,9 @@ obj_ecoff_set_ext (sym, ext) = &ecoff_backend (stdoutput)->debug_swap; ecoff_symbol_type *esym; - know (bfd_asymbol_flavour (sym->bsym) == bfd_target_ecoff_flavour); - esym = ecoffsymbol (sym->bsym); + know (bfd_asymbol_flavour (symbol_get_bfdsym (sym)) + == bfd_target_ecoff_flavour); + esym = ecoffsymbol (symbol_get_bfdsym (sym)); esym->local = false; esym->native = xmalloc (debug_swap->external_ext_size); (*debug_swap->swap_ext_out) (stdoutput, ext, esym->native); @@ -287,14 +293,18 @@ ecoff_pop_insert () const struct format_ops ecoff_format_ops = { bfd_target_ecoff_flavour, - 0, - 1, + 0, /* dfl_leading_underscore */ + 1, /* emit_section_symbols */ obj_ecoff_frob_symbol, ecoff_frob_file, - 0, - 0, 0, - 0, 0, - 0, + 0, /* frob_file_after_relocs */ + 0, /* s_get_size */ + 0, /* s_set_size */ + 0, /* s_get_align */ + 0, /* s_set_align */ + 0, /* s_get_other */ + 0, /* s_get_desc */ + 0, /* copy_symbol_attributes */ ecoff_generate_asm_lineno, ecoff_stab, ecoff_sec_sym_ok_for_reloc, |