aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-01 17:17:52 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-01 17:17:52 +0000
commit257df7914ddc163062473efb3e5d9e7df7a7184d (patch)
treea061bb97c96daf2dc01ef8aa43ffb32c12619395 /gas/config/obj-coff.c
parent330595d00b81733b03df38810bbf2bb75f612a26 (diff)
downloadgdb-257df7914ddc163062473efb3e5d9e7df7a7184d.zip
gdb-257df7914ddc163062473efb3e5d9e7df7a7184d.tar.gz
gdb-257df7914ddc163062473efb3e5d9e7df7a7184d.tar.bz2
* config/obj-coff.c (dot_text_symbol, dot_data_symbol,
dot_bss_symbol): Don't define if BFD_ASSEMBLER. (obj_symbol_to_chars): bfd_coff_swap_aux_out now takes more arguments. (coff_line_base): Renamed from line_base. Changed all uses. (coff_add_linesym): Renamed from add_line_sym. Made non-static. Changed all uses. * config/obj-coff.h: If TC_PPC, include coff/rs6000.h. (S_SET_STORAGE_CLASS, S_GET_STORAGE_CLASS): Declare if BFD_ASSEMBLER. (coff_line_base): Declare. (coff_add_linesym): Declare if BFD_ASSEMBLER.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 6095ef5..e33891d 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -91,9 +91,11 @@ static void SA_SET_SYM_TAGNDX PARAMS ((symbolS *, symbolS *));
static struct hash_control *tag_hash;
static symbolS *def_symbol_in_progress;
+#ifndef BFD_ASSEMBLER
static symbolS *dot_text_symbol;
static symbolS *dot_data_symbol;
static symbolS *dot_bss_symbol;
+#endif
const pseudo_typeS obj_pseudo_table[] =
{
@@ -521,7 +523,7 @@ obj_symbol_to_chars (where, symbolP)
&symbolP->sy_symbol.ost_auxent[i],
S_GET_DATA_TYPE (symbolP),
S_GET_STORAGE_CLASS (symbolP),
- *where);
+ i, numaux, *where);
}
#else /* BFD_HEADERS */
@@ -904,7 +906,7 @@ c_section_header (header,
/* Line number handling */
-int line_base;
+int coff_line_base;
#ifdef BFD_ASSEMBLER
@@ -913,7 +915,7 @@ static symbolS *line_fsym;
#define in_function() (line_fsym != 0)
#define clear_function() (line_fsym = 0)
-#define set_function(F) (line_fsym = (F), add_linesym (F))
+#define set_function(F) (line_fsym = (F), coff_add_linesym (F))
#else
@@ -1152,8 +1154,8 @@ add_lineno (frag, offset, num)
line_nos = new_line;
}
-static void
-add_linesym (sym)
+void
+coff_add_linesym (sym)
symbolS *sym;
{
if (line_nos)
@@ -1196,7 +1198,7 @@ obj_coff_ln (appline)
if (listing)
{
if (! appline)
- l += line_base - 1;
+ l += coff_line_base - 1;
listing_source_line (l);
}
}
@@ -1518,11 +1520,11 @@ obj_coff_line (ignored)
}
this_base = get_absolute_expression ();
- if (this_base > line_base)
- line_base = this_base;
+ if (this_base > coff_line_base)
+ coff_line_base = this_base;
S_SET_NUMBER_AUXILIARY (def_symbol_in_progress, 1);
- SA_SET_SYM_LNNO (def_symbol_in_progress, line_base);
+ SA_SET_SYM_LNNO (def_symbol_in_progress, coff_line_base);
demand_empty_rest_of_line ();
}
@@ -2274,7 +2276,7 @@ coff_frob_symbol (symp, punt)
static stack *block_stack;
if (current_lineno_sym)
- add_linesym ((symbolS *) 0);
+ coff_add_linesym ((symbolS *) 0);
if (!block_stack)
block_stack = stack_init (512, sizeof (symbolS*));