* 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

@ -1,3 +1,8 @@
2009-03-30 DJ Delorie <dj@redhat.com>
* elflink.c (elf_link_input_bfd): Don't try to resolve complex
relocs when doing a relocatable link.
2009-03-28 Mark Mitchell <mark@codesourcery.com>
* coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not

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