diff options
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index 58befc3..6ad32ba 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2684,7 +2684,7 @@ default_indirect_link_order (bfd *output_bfd, BFD_ASSERT (input_section->output_section == output_section); BFD_ASSERT (input_section->output_offset == link_order->offset); - BFD_ASSERT (input_section->_cooked_size == link_order->size); + BFD_ASSERT (input_section->size == link_order->size); if (info->relocatable && input_section->reloc_count > 0 @@ -2756,7 +2756,7 @@ default_indirect_link_order (bfd *output_bfd, } /* Get and relocate the section contents. */ - sec_size = bfd_section_size (input_bfd, input_section); + sec_size = input_section->size; contents = bfd_malloc (sec_size); if (contents == NULL && sec_size != 0) goto error_return; |