(default_indirect_link_order): In assertion, compare link_order size field
authorKen Raeburn <raeburn@cygnus>
Wed, 16 Feb 1994 00:57:48 +0000 (00:57 +0000)
committerKen Raeburn <raeburn@cygnus>
Wed, 16 Feb 1994 00:57:48 +0000 (00:57 +0000)
against cooked size, not raw size, of input section.

bfd/linker.c

index 3d8597e166525b2c256132c3304c662f392d0f9f..f671f55d443575ab68b5537996f15152fc04cc4c 100644 (file)
@@ -1989,7 +1989,7 @@ default_indirect_link_order (output_bfd, info, output_section, link_order)
 
   BFD_ASSERT (input_section->output_section == output_section);
   BFD_ASSERT (input_section->output_offset == link_order->offset);
-  BFD_ASSERT (bfd_section_size (input_bfd, input_section) == link_order->size);
+  BFD_ASSERT (input_section->_cooked_size == link_order->size);
 
   if (info->relocateable
       && input_section->reloc_count > 0