Mon Aug 1 12:04:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+ * elfcode.h (elf_slurp_reloc_table): Don't try to read the relocs
+ if there aren't any.
+
* configure.host (sparc-*-solaris2*): Use sysv4, not solaris2.
* hosts/solaris2.h: Remove.
* config/solaris2.mh: Remove.
unsigned int i;
int entsize;
- if (asect->relocation != NULL)
+ if (asect->relocation != NULL
+ || (asect->flags & SEC_RELOC) == 0
+ || asect->reloc_count == 0)
return true;
BFD_ASSERT (asect->rel_filepos == d->rel_hdr.sh_offset
BFD_ASSERT (weakdef->root.type == bfd_link_hash_defined);
BFD_ASSERT (weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC);
if ((weakdef->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0
- || (weakdef->elf_link_hash_flags & ELF_LINK_HASH_REF_REGULAR) == 0)
+ || (weakdef->elf_link_hash_flags & ELF_LINK_HASH_REF_REGULAR) != 0)
{
/* This symbol is defined or referenced by a regular object
file, so we will not do anything special. Clear weakdef