if (elf_bad_symtab (abfd))
continue;
+ /* Dynamic object relocations are not processed by ld, so
+ ld won't run into the problem mentioned above. */
+ if (dynamic)
+ continue;
+
/* If we aren't prepared to handle locals within the globals
then we'll likely segfault on a NULL symbol hash if the
symbol is ever referenced in relocations. */
abfd, name, (long) (isym - isymbuf + extsymoff),
(long) extsymoff);
- /* Dynamic object relocations are not processed by ld, so
- ld won't run into the problem mentioned above. */
- if (dynamic)
- continue;
+
bfd_set_error (bfd_error_bad_value);
goto error_free_vers;