* ldwrite.c (build_link_order): Use bfd_get_section_size
authorAlan Modra <amodra@gmail.com>
Tue, 15 Jun 2004 01:13:20 +0000 (01:13 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 15 Jun 2004 01:13:20 +0000 (01:13 +0000)
instead of bfd_get_section_size_before_reloc or _raw_size.
* pe-dll.c (process_def_file): Likewise.

ld/ChangeLog
ld/ldwrite.c
ld/pe-dll.c

index edc76afbbf5d4521bf2703ace9cb7aac2df245b1..b423b74ad6a169478b01e94cd0616bf423ea8094 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-15  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldwrite.c (build_link_order): Use bfd_get_section_size
+       instead of bfd_get_section_size_before_reloc or _raw_size.
+       * pe-dll.c (process_def_file): Likewise.
+
 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
 
        From Richard Wirth <r.wirth@wirthware.de>
index b7637e079ff19e427955266b22f7bac59a36ca4e..83670750d1bdfd51746eb48862ce859a381b605f 100644 (file)
@@ -254,7 +254,7 @@ build_link_order (lang_statement_union_type *statement)
              if (i->_cooked_size)
                link_order->size = i->_cooked_size;
              else
-               link_order->size = bfd_get_section_size_before_reloc (i);
+               link_order->size = bfd_get_section_size (i);
              link_order->offset = i->output_offset;
            }
        }
index 45d00aedccb9af8b7b70136a8aaae8f30d76bad8..2b5609c09f2f95a6d73d5a9e7c9febfb8b084cad 100644 (file)
@@ -515,7 +515,7 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
       s = bfd_get_section_by_name (b, ".drectve");
       if (s)
        {
-         int size = bfd_get_section_size_before_reloc (s);
+         int size = bfd_get_section_size (s);
          char *buf = xmalloc (size);
 
          bfd_get_section_contents (b, s, buf, 0, size);