* 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.
This commit is contained in:
Ian Lance Taylor 1993-11-19 21:37:50 +00:00
parent dbdf5a2a04
commit e0209756f8
2 changed files with 30 additions and 25 deletions

View File

@ -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) Fri Nov 19 04:33:59 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* write.c (write_object_file): Disable obj_check_file_symbols * write.c (write_object_file): Disable obj_check_file_symbols

View File

@ -93,40 +93,33 @@ static int line_base;
symbolS *c_section_symbol (); symbolS *c_section_symbol ();
bfd *abfd; 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)); segT this_segment_type));
static void EXFUN (fixup_mdeps, (fragS *, static void fixup_mdeps PARAMS ((fragS *,
object_headers *, object_headers *,
segT)); segT));
static void EXFUN (fill_section, (bfd * abfd, static void fill_section PARAMS ((bfd * abfd,
object_headers *, object_headers *,
unsigned long *)); unsigned long *));
char *EXFUN (s_get_name, (symbolS * s)); char *s_get_name PARAMS ((symbolS * s));
static symbolS *EXFUN (tag_find_or_make, (char *name)); static symbolS *tag_find_or_make PARAMS ((char *name));
static symbolS *EXFUN (tag_find, (char *name)); static symbolS *tag_find PARAMS ((char *name));
static int static int c_line_new PARAMS ((symbolS * symbol, long paddr,
EXFUN (c_line_new, ( unsigned short line_number,
symbolS * symbol, fragS * frag));
long paddr,
unsigned short line_number,
fragS * frag));
static void EXFUN (w_symbols, static void w_symbols PARAMS ((bfd * abfd, char *where,
(bfd * abfd, symbolS * symbol_rootP));
char *where,
symbolS * symbol_rootP));
static char *stack_pop PARAMS ((stack * st)); static char *stack_pop PARAMS ((stack * st));
static char *stack_push PARAMS ((stack * st, char *element)); 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_init PARAMS ((void));
static void tag_insert PARAMS ((char *name, symbolS * symbolP)); 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; static struct hash_control *tag_hash;
@ -1430,13 +1424,13 @@ DEFUN_VOID (yank_symbols)
resolve_symbol_value (symbolP); resolve_symbol_value (symbolP);
if (!S_IS_DEFINED (symbolP) && !SF_GET_LOCAL (symbolP)) if (S_GET_STORAGE_CLASS (symbolP) == C_NULL)
{ {
S_SET_EXTERNAL (symbolP); if (!S_IS_DEFINED (symbolP) && !SF_GET_LOCAL (symbolP))
} {
else if (S_GET_STORAGE_CLASS (symbolP) == C_NULL) S_SET_EXTERNAL (symbolP);
{ }
if (S_GET_SEGMENT (symbolP) == SEG_E0) else if (S_GET_SEGMENT (symbolP) == SEG_E0)
{ {
S_SET_STORAGE_CLASS (symbolP, C_LABEL); 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. */ /* Fill in the counts in the first entry in a .stab section. */
static void
adjust_stab_section(abfd, seg) adjust_stab_section(abfd, seg)
bfd *abfd; bfd *abfd;
segT seg; segT seg;
{ {
segT stabstrseg = -1; segT stabstrseg = -1;
char *secname, *name, *name2; char *secname, *name, *name2;
asection *stabsec, *stabstrsec;
char *p = NULL; char *p = NULL;
int i, strsz = 0, nsyms; int i, strsz = 0, nsyms;
fragS *frag = segment_info[seg].frchainP->frch_root; fragS *frag = segment_info[seg].frchainP->frch_root;