* elflink.c (elf_link_input_bfd): Don't try to resolve complex
authorDJ Delorie <dj@redhat.com>
Tue, 31 Mar 2009 01:42:29 +0000 (01:42 +0000)
committerDJ Delorie <dj@redhat.com>
Tue, 31 Mar 2009 01:42:29 +0000 (01:42 +0000)
relocs when doing a relocatable link.

bfd/ChangeLog
bfd/elflink.c

index 8ee5964b854669f0ed676d8437d79438c206d558..f655ab08552e8623091117e3917c350f5fa6223e 100644 (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
index c635cb0691936e875dd80fc5755be04f52596073..9b6e3ed86c974504d1f96846d3fdb0c69322fe6e 100644 (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