* sim-load.c (sim_load_file): Use bfd_get_section_size
authorAlan Modra <amodra@gmail.com>
Tue, 15 Jun 2004 01:08:00 +0000 (01:08 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 15 Jun 2004 01:08:00 +0000 (01:08 +0000)
instead of bfd_get_section_size_before_reloc.

sim/common/ChangeLog
sim/common/sim-load.c

index d5c3a5043ed270385e179a62a5a10dc51a9c68b6..08a1751f25e3147b84f38748ea69636e92066adb 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-15  Alan Modra  <amodra@bigpond.net.au>
+
+       * sim-load.c (sim_load_file): Use bfd_get_section_size
+       instead of bfd_get_section_size_before_reloc.
+
 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
 
        * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
index ef298b2a533a128ce99a1f87aa9d553133e5430d..5fc4c986c6727d8de37864cf7ad8e1a315d176b6 100644 (file)
@@ -112,7 +112,7 @@ sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p, lma_p, do_write)
        {
          bfd_size_type size;
 
-         size = bfd_get_section_size_before_reloc (s);
+         size = bfd_get_section_size (s);
          if (size > 0)
            {
              char *buffer;