summaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-aout.h2
-rw-r--r--gas/config/obj-bout.h2
-rw-r--r--gas/config/obj-coff.h4
-rw-r--r--gas/config/tc-alpha.c2
-rw-r--r--gas/config/tc-d10v.c2
-rw-r--r--gas/config/tc-ia64.c2
-rw-r--r--gas/config/tc-iq2000.c2
-rw-r--r--gas/config/tc-m32r.c2
-rw-r--r--gas/config/tc-mmix.c2
-rw-r--r--gas/config/tc-sh64.c4
10 files changed, 8 insertions, 16 deletions
diff --git a/gas/config/obj-aout.h b/gas/config/obj-aout.h
index 8852cf1fcbc..842c0a6709f 100644
--- a/gas/config/obj-aout.h
+++ b/gas/config/obj-aout.h
@@ -127,8 +127,6 @@ extern void obj_aout_frob_file_before_fix (void);
|| (flag_strip_local_absolute \
&& ! S_IS_EXTERNAL(s) \
&& S_GET_SEGMENT (s) == absolute_section))
-/* True if a symbol is not defined in this file. */
-#define S_IS_EXTERN(s) ((s)->sy_symbol.n_type & N_EXT)
/* True if the symbol has been generated because of a .stabd directive. */
#define S_IS_STABD(s) (S_GET_NAME(s) == NULL)
diff --git a/gas/config/obj-bout.h b/gas/config/obj-bout.h
index f51b8784c04..10a8184b360 100644
--- a/gas/config/obj-bout.h
+++ b/gas/config/obj-bout.h
@@ -197,8 +197,6 @@ struct relocation_info
|| (flag_strip_local_absolute \
&& !S_IS_EXTERNAL(s) \
&& S_GET_SEGMENT(s) == absolute_section))
-/* True if a symbol is not defined in this file. */
-#define S_IS_EXTERN(s) ((s)->sy_symbol.n_type & N_EXT)
/* True if the symbol has been generated because of a .stabd directive. */
#define S_IS_STABD(s) (S_GET_NAME(s) == NULL)
diff --git a/gas/config/obj-coff.h b/gas/config/obj-coff.h
index c6819a202dd..7a099d6e25f 100644
--- a/gas/config/obj-coff.h
+++ b/gas/config/obj-coff.h
@@ -502,10 +502,6 @@ typedef struct
&& !S_IS_EXTERNAL (s) \
&& (s)->sy_symbol.ost_entry.n_scnum == C_ABS_SECTION))
-/* True if a symbol is not defined in this file. */
-#define S_IS_EXTERN(s) ((s)->sy_symbol.ost_entry.n_scnum == 0 \
- && S_GET_VALUE (s) == 0)
-
/* True if a symbol can be multiply defined (bss symbols have this def
though it is bad practice). */
#define S_IS_COMMON(s) ((s)->sy_symbol.ost_entry.n_scnum == 0 \
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index 08826ecd1df..29a6fe5dfe4 100644
--- a/gas/config/tc-alpha.c
+++ b/gas/config/tc-alpha.c
@@ -5637,7 +5637,7 @@ tc_gen_reloc (asection *sec ATTRIBUTE_UNUSED,
symbol, the relocation will entirely be performed at link time, not
at assembly time. bfd_perform_reloc doesn't know about this sort
of thing, and as a result we need to fake it out here. */
- if ((S_IS_EXTERN (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy)
+ if ((S_IS_EXTERNAL (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy)
|| (S_GET_SEGMENT (fixp->fx_addsy)->flags & SEC_MERGE)
|| (S_GET_SEGMENT (fixp->fx_addsy)->flags & SEC_THREAD_LOCAL))
&& !S_IS_COMMON (fixp->fx_addsy))
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index eb00fbb0605..14450bbe679 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -1572,7 +1572,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
symbol, then ignore the offset.
XXX - Do we have to worry about branches to a symbol + offset ? */
if (fixP->fx_addsy != NULL
- && S_IS_EXTERN (fixP->fx_addsy) )
+ && S_IS_EXTERNAL (fixP->fx_addsy) )
{
segT fseg = S_GET_SEGMENT (fixP->fx_addsy);
segment_info_type *segf = seg_info(fseg);
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 20c3aa60cdd..9f53ddc8620 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -10844,7 +10844,7 @@ ia64_fix_adjustable (fix)
fixS *fix;
{
/* Prevent all adjustments to global symbols */
- if (S_IS_EXTERN (fix->fx_addsy) || S_IS_WEAK (fix->fx_addsy))
+ if (S_IS_EXTERNAL (fix->fx_addsy) || S_IS_WEAK (fix->fx_addsy))
return 0;
switch (fix->fx_r_type)
diff --git a/gas/config/tc-iq2000.c b/gas/config/tc-iq2000.c
index 11319098d44..0a5fcba7ec2 100644
--- a/gas/config/tc-iq2000.c
+++ b/gas/config/tc-iq2000.c
@@ -800,7 +800,7 @@ iq2000_fix_adjustable (fixS * fixP)
return TRUE;
/* Prevent all adjustments to global symbols. */
- if (S_IS_EXTERN (fixP->fx_addsy))
+ if (S_IS_EXTERNAL (fixP->fx_addsy))
return FALSE;
if (S_IS_WEAK (fixP->fx_addsy))
diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c
index ab574fe71f4..c188fcfea1a 100644
--- a/gas/config/tc-m32r.c
+++ b/gas/config/tc-m32r.c
@@ -2205,7 +2205,7 @@ m32r_fix_adjustable (fixS *fixP)
return 1;
/* Prevent all adjustments to global symbols. */
- if (S_IS_EXTERN (fixP->fx_addsy))
+ if (S_IS_EXTERNAL (fixP->fx_addsy))
return 0;
if (S_IS_WEAK (fixP->fx_addsy))
return 0;
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c
index f4a95f1634a..66fda95bcd5 100644
--- a/gas/config/tc-mmix.c
+++ b/gas/config/tc-mmix.c
@@ -3309,7 +3309,7 @@ mmix_adjust_symtab (void)
{
if (sym == regsec)
{
- if (S_IS_EXTERN (sym) || symbol_used_in_reloc_p (sym))
+ if (S_IS_EXTERNAL (sym) || symbol_used_in_reloc_p (sym))
abort ();
symbol_remove (sym, &symbol_rootP, &symbol_lastP);
}
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c
index a95589e23d8..d5c555bbc40 100644
--- a/gas/config/tc-sh64.c
+++ b/gas/config/tc-sh64.c
@@ -284,7 +284,7 @@ shmedia_frob_file_before_adjust (void)
if (mainsym != NULL
&& S_GET_OTHER (mainsym) != STO_SH5_ISA32
- && (S_IS_EXTERN (mainsym) || S_IS_WEAK (mainsym)))
+ && (S_IS_EXTERNAL (mainsym) || S_IS_WEAK (mainsym)))
{
symp->sy_value.X_op = O_symbol;
symp->sy_value.X_add_symbol = mainsym;
@@ -823,7 +823,7 @@ shmedia_md_convert_frag (bfd *output_bfd ATTRIBUTE_UNUSED,
|| sh_relax
|| symbolP == NULL
|| ! S_IS_DEFINED (symbolP)
- || S_IS_EXTERN (symbolP)
+ || S_IS_EXTERNAL (symbolP)
|| S_IS_WEAK (symbolP)
|| (S_GET_SEGMENT (fragP->fr_symbol) != absolute_section
&& S_GET_SEGMENT (fragP->fr_symbol) != seg));