* elflink.c (elf_link_input_bfd): Don't try to resolve complex

relocs when doing a relocatable link.
This commit is contained in:
DJ Delorie 2009-03-31 01:42:29 +00:00
parent 4a19ce7eb9
commit c301e70067
2 changed files with 7 additions and 1 deletions

View file

@ -9329,7 +9329,8 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
sym, *ps);
}
if (s_type == STT_RELC || s_type == STT_SRELC)
if ((s_type == STT_RELC || s_type == STT_SRELC)
&& !finfo->info->relocatable)
{
bfd_vma val;
bfd_vma dot = (rel->r_offset