--- a/binutils/bfd/elflink.c +++ b/binutils/bfd/elflink.c @@ -8538,8 +8538,10 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data) : ELF_ST_VISIBILITY (h->other) == STV_HIDDEN ? "hidden" : "local", h->root.root.string); +#ifdef ENABLE_STRICT_SYMBOL_CHECKING eoinfo->failed = TRUE; return FALSE; +#endif /* ENABLE_STRICT_SYMBOL_CHECKING */ } /* We don't want to output symbols that have never been mentioned by @@ -8730,8 +8732,10 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data) : ELF_ST_VISIBILITY (sym.st_other) == STV_INTERNAL ? "internal" : "hidden", h->root.root.string); +#ifdef ENABLE_STRICT_SYMBOL_CHECKING eoinfo->failed = TRUE; return FALSE; +#endif /* ENABLE_STRICT_SYMBOL_CHECKING */ } /* If this symbol should be put in the .dynsym section, then put it