]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/linker.c
bfd/
[thirdparty/binutils-gdb.git] / bfd / linker.c
index 58befc3632e69282117223385fef82fdf38e11cc..6ad32ba9535be2ba6e5d23dcffa3253798bbe6e2 100644 (file)
@@ -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;