* linker.c (default_indirect_link_order): Don't expect space for
authorIan Lance Taylor <ian@airs.com>
Wed, 12 Jan 1994 20:33:30 +0000 (20:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 12 Jan 1994 20:33:30 +0000 (20:33 +0000)
output relocations if there aren't any input relocations.

bfd/ChangeLog
bfd/linker.c

index 8082998c30c8c6ff97ba95bb963eaa08d79a736a..19142835cc23d09214140a4f4d333fea902f00c7 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jan 12 15:31:57 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * linker.c (default_indirect_link_order): Don't expect space for
+       output relocations if there aren't any input relocations.
+
 Tue Jan 11 14:37:12 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
index eb8b4e8ba58931a87f951c540d0c6f50d96765df..773001b49ab0ada9089eed94dfd95f00b84a36c0 100644 (file)
@@ -1523,6 +1523,7 @@ default_indirect_link_order (output_bfd, info, output_section, link_order)
   BFD_ASSERT (bfd_section_size (input_bfd, input_section) == link_order->size);
 
   if (info->relocateable
+      && input_section->reloc_count > 0
       && output_section->orelocation == (arelent **) NULL)
     {
       /* Space has not been allocated for the output relocations.
This page took 0.035449 seconds and 4 git commands to generate.