* elf32-hppa.c (elf32_hppa_final_link): Don't sort unwind information
authorDave Anglin <dave.anglin@nrc.ca>
Sun, 8 Nov 2009 20:47:24 +0000 (20:47 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Sun, 8 Nov 2009 20:47:24 +0000 (20:47 +0000)
in a relocatable link.
* elf64-hppa.c (elf_hppa_final_link): Likewise.

bfd/ChangeLog
bfd/elf32-hppa.c
bfd/elf64-hppa.c

index 86af78611f7e160799f4f51f5f01aa40ead91766..e918d6c8bed3e824c2d1fd733e2359921a535782 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf32-hppa.c (elf32_hppa_final_link): Don't sort unwind information
+       in a relocatable link.
+       * elf64-hppa.c (elf_hppa_final_link): Likewise.
+
 2009-11-05  Nick Clifton  <nickc@redhat.com>
 
        * elflink.c (elf_link_add_object_symbols): Improve error
index cac0a215f4d6261c28e92ebc23080d98a353d097..2a5547b1f3a96f71831cb97331f590442ab4a2c2 100644 (file)
@@ -3238,6 +3238,9 @@ elf32_hppa_final_link (bfd *abfd, struct bfd_link_info *info)
 
   /* If we're producing a final executable, sort the contents of the
      unwind section.  */
+  if (info->relocatable)
+    return TRUE;
+
   return elf_hppa_sort_unwind (abfd);
 }
 
index 0b762e40b15b3c207174484d22665d7cb52fb995..637d232fe8c7aed27e02f2be4d344955f5c51ee0 100644 (file)
@@ -3033,7 +3033,7 @@ elf_hppa_final_link (bfd *abfd, struct bfd_link_info *info)
 
   /* If we're producing a final executable, sort the contents of the
      unwind section. */
-  if (retval)
+  if (retval && !info->relocatable)
     retval = elf_hppa_sort_unwind (abfd);
 
   return retval;