diff options
Diffstat (limited to 'gas/ecoff.c')
-rw-r--r-- | gas/ecoff.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gas/ecoff.c b/gas/ecoff.c index b8c9019..b5d811c 100644 --- a/gas/ecoff.c +++ b/gas/ecoff.c @@ -36,6 +36,7 @@ #include "aout/stab_gnu.h" #include "filenames.h" #include "safe-ctype.h" +#include "ecoff-bfd.h" /* Why isn't this in coff/sym.h? */ #define ST_RFDESCAPE 0xfff @@ -1558,8 +1559,8 @@ add_string (varray_t *vp, /* string obstack */ if (len >= PAGE_USIZE) as_fatal (_("string too big (%lu bytes)"), len); - hash_ptr = (shash_t *) str_hash_find (hash_tbl, str); - if (hash_ptr == (shash_t *) NULL) + hash_ptr = str_hash_find (hash_tbl, str); + if (hash_ptr == NULL) { if (vp->objects_last_page + len >= PAGE_USIZE) { @@ -2009,7 +2010,7 @@ get_tag (const char *tag, /* tag name */ if (cur_file_ptr == (efdr_t *) NULL) as_fatal (_("no current file pointer")); - hash_ptr = (shash_t *) str_hash_find (tag_hash, tag); + hash_ptr = str_hash_find (tag_hash, tag); if (hash_ptr != (shash_t *) NULL && hash_ptr->tag_ptr != (tag_t *) NULL) @@ -3350,7 +3351,7 @@ ecoff_directive_weakext (int ignore ATTRIBUTE_UNUSED) ++input_line_pointer; SKIP_WHITESPACE (); - if (! is_end_of_line[(unsigned char) *input_line_pointer]) + if (! is_end_of_stmt (*input_line_pointer)) { expression (&exp); if (exp.X_op != O_symbol) @@ -3549,13 +3550,6 @@ ecoff_stab (int what, cur_file_ptr = save_file_ptr; } -static asection ecoff_scom_section; -static const asymbol ecoff_scom_symbol = - GLOBAL_SYM_INIT (SCOMMON, &ecoff_scom_section); -static asection ecoff_scom_section = - BFD_FAKE_SECTION (ecoff_scom_section, &ecoff_scom_symbol, - SCOMMON, 0, SEC_IS_COMMON | SEC_SMALL_DATA); - /* Frob an ECOFF symbol. Small common symbols go into a special .scommon section rather than bfd_com_section. */ @@ -3566,7 +3560,7 @@ ecoff_frob_symbol (symbolS *sym) && S_GET_VALUE (sym) > 0 && S_GET_VALUE (sym) <= bfd_get_gp_size (stdoutput)) { - S_SET_SEGMENT (sym, &ecoff_scom_section); + S_SET_SEGMENT (sym, &_bfd_ecoff_scom_section); } /* Double check weak symbols. */ |