aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-11-19 21:37:50 +0000
committerIan Lance Taylor <ian@airs.com>1993-11-19 21:37:50 +0000
commite0209756f8e7c21987225918134f8530fa5a5d87 (patch)
tree7dc00393e4b38b541d77c21c7e88ac5d67d57046
parentdbdf5a2a04a2649613e7fdf15b53f960f4dfa1e4 (diff)
downloadgdb-e0209756f8e7c21987225918134f8530fa5a5d87.zip
gdb-e0209756f8e7c21987225918134f8530fa5a5d87.tar.gz
gdb-e0209756f8e7c21987225918134f8530fa5a5d87.tar.bz2
* config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
(yank_symbols): Don't call S_SET_EXTERNAL if the storage class is already set. Fixes .def var; .val external_var; .scl 3; .endef. (adjust_stab_section): Make static. Declare return type. Remove unused variables. * config/tc-i386.h: Declare tc_coff_fix2rtype and tc_coff_sizemachdep.
-rw-r--r--gas/ChangeLog11
-rw-r--r--gas/config/obj-coffbfd.c44
2 files changed, 30 insertions, 25 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9d06141..3fa1aff 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,14 @@
+Fri Nov 19 16:25:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
+ (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
+ already set. Fixes .def var; .val external_var; .scl 3; .endef.
+ (adjust_stab_section): Make static. Declare return type. Remove
+ unused variables.
+
+ * config/tc-i386.h: Declare tc_coff_fix2rtype and
+ tc_coff_sizemachdep.
+
Fri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* write.c (write_object_file): Disable obj_check_file_symbols
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index d774a07..1b2a033 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -93,40 +93,33 @@ static int line_base;
symbolS *c_section_symbol ();
bfd *abfd;
-void EXFUN (bfd_as_write_hook, (struct internal_filehdr *,
- bfd * abfd));
-static void EXFUN (fixup_segment, (segment_info_type *segP,
+static void fixup_segment PARAMS ((segment_info_type *segP,
segT this_segment_type));
-static void EXFUN (fixup_mdeps, (fragS *,
+static void fixup_mdeps PARAMS ((fragS *,
object_headers *,
segT));
-static void EXFUN (fill_section, (bfd * abfd,
+static void fill_section PARAMS ((bfd * abfd,
object_headers *,
unsigned long *));
-char *EXFUN (s_get_name, (symbolS * s));
-static symbolS *EXFUN (tag_find_or_make, (char *name));
-static symbolS *EXFUN (tag_find, (char *name));
+char *s_get_name PARAMS ((symbolS * s));
+static symbolS *tag_find_or_make PARAMS ((char *name));
+static symbolS *tag_find PARAMS ((char *name));
-static int
- EXFUN (c_line_new, (
- symbolS * symbol,
- long paddr,
- unsigned short line_number,
- fragS * frag));
+static int c_line_new PARAMS ((symbolS * symbol, long paddr,
+ unsigned short line_number,
+ fragS * frag));
-static void EXFUN (w_symbols,
- (bfd * abfd,
- char *where,
- symbolS * symbol_rootP));
+static void w_symbols PARAMS ((bfd * abfd, char *where,
+ symbolS * symbol_rootP));
static char *stack_pop PARAMS ((stack * st));
static char *stack_push PARAMS ((stack * st, char *element));
@@ -139,6 +132,7 @@ static stack *stack_init PARAMS ((unsigned long chunk_size,
static void tag_init PARAMS ((void));
static void tag_insert PARAMS ((char *name, symbolS * symbolP));
+static void adjust_stab_section PARAMS ((bfd *abfd, segT seg));
static struct hash_control *tag_hash;
@@ -1430,13 +1424,13 @@ DEFUN_VOID (yank_symbols)
resolve_symbol_value (symbolP);
- if (!S_IS_DEFINED (symbolP) && !SF_GET_LOCAL (symbolP))
- {
- S_SET_EXTERNAL (symbolP);
- }
- else if (S_GET_STORAGE_CLASS (symbolP) == C_NULL)
+ if (S_GET_STORAGE_CLASS (symbolP) == C_NULL)
{
- if (S_GET_SEGMENT (symbolP) == SEG_E0)
+ if (!S_IS_DEFINED (symbolP) && !SF_GET_LOCAL (symbolP))
+ {
+ S_SET_EXTERNAL (symbolP);
+ }
+ else if (S_GET_SEGMENT (symbolP) == SEG_E0)
{
S_SET_STORAGE_CLASS (symbolP, C_LABEL);
}
@@ -2680,13 +2674,13 @@ obj_coff_init_stab_section (seg)
/* Fill in the counts in the first entry in a .stab section. */
+static void
adjust_stab_section(abfd, seg)
bfd *abfd;
segT seg;
{
segT stabstrseg = -1;
char *secname, *name, *name2;
- asection *stabsec, *stabstrsec;
char *p = NULL;
int i, strsz = 0, nsyms;
fragS *frag = segment_info[seg].frchainP->frch_root;