While they aren't opposites of each other, there also shouldn't be any
symbol for which both return true; both may return false. Therefore
use S_IS_EXTERNAL() in S_IS_LOCAL(), thus subsuming the sanity check
which so far both did alike.
if (s->flags.local_symbol)
return 1;
- flags = s->bsym->flags;
-
- /* Sanity check. */
- if ((flags & BSF_LOCAL) && (flags & BSF_GLOBAL))
- abort ();
+ if (S_IS_EXTERNAL (s))
+ return 0;
if (bfd_asymbol_section (s->bsym) == reg_section)
return 1;
+ flags = s->bsym->flags;
+
if (flag_strip_local_absolute
/* Keep BSF_FILE symbols in order to allow debuggers to identify
the source file even when the object file is stripped. */