* linker.c (default_indirect_link_order): Don't expect space for
output relocations if there aren't any input relocations.
This commit is contained in:
parent
4ad942bffd
commit
92f345b9e4
|
@ -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)
|
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
|
* aoutx.h (NAME(aout,final_link)): Set a_entry before computing
|
||||||
|
|
|
@ -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);
|
BFD_ASSERT (bfd_section_size (input_bfd, input_section) == link_order->size);
|
||||||
|
|
||||||
if (info->relocateable
|
if (info->relocateable
|
||||||
|
&& input_section->reloc_count > 0
|
||||||
&& output_section->orelocation == (arelent **) NULL)
|
&& output_section->orelocation == (arelent **) NULL)
|
||||||
{
|
{
|
||||||
/* Space has not been allocated for the output relocations.
|
/* Space has not been allocated for the output relocations.
|
||||||
|
|
Loading…
Reference in New Issue