* elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub
authorJeff Law <law@redhat.com>
Sun, 18 Jun 1995 03:39:23 +0000 (03:39 +0000)
committerJeff Law <law@redhat.com>
Sun, 18 Jun 1995 03:39:23 +0000 (03:39 +0000)
section if we get an error.

bfd/ChangeLog
bfd/elf32-hppa.c

index d9aa3e02c20c43b682e070439f32431ec16756cd..edaaae3517cb56f6052434a5625a762e02889e6a 100644 (file)
@@ -1,5 +1,8 @@
 Sat Jun 17 09:40:44 1995  Jeff Law  (law@snake.cs.utah.edu)
 
+       * elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub
+       section if we get an error.
+
        * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Don't mess
        with the operands of an R_PARISC_DPREL21L relocation if the insn
        is not "addil <symbol>,%r27".
index d66679f5e95b3e66976d1e31db774e99b140c4ae..82cb6f361ca6a4534531b9046871091b32781f69 100644 (file)
@@ -2989,6 +2989,10 @@ error_return:
       elf32_hppa_hash_table(link_info)->args_hash_table = NULL;
       free (args_hash_table);
     }
+  /* Set the size of the stub section to zero since we're never going
+     to create them.   Avoids losing when we try to get its contents
+     too.  */
+  bfd_set_section_size (stub_bfd, stub_sec, 0);
   return false;
 }