diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-12 20:33:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-12 20:33:30 +0000 |
commit | 92f345b9e4d9df098fefd545b6b85698e0b996ea (patch) | |
tree | 4b55028a767f51205390f4c0cd6b66468a745c6e /bfd/linker.c | |
parent | 4ad942bffd1c5cd557dd91a3372f71f484ddf634 (diff) | |
download | gdb-92f345b9e4d9df098fefd545b6b85698e0b996ea.zip gdb-92f345b9e4d9df098fefd545b6b85698e0b996ea.tar.gz gdb-92f345b9e4d9df098fefd545b6b85698e0b996ea.tar.bz2 |
* linker.c (default_indirect_link_order): Don't expect space for
output relocations if there aren't any input relocations.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index eb8b4e8..773001b 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -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. |