* sim-load.c (sim_load_file): Use bfd_get_section_size

instead of bfd_get_section_size_before_reloc.
This commit is contained in:
Alan Modra 2004-06-15 01:08:00 +00:00
parent 2c500098f2
commit 5f510f9ca0
2 changed files with 6 additions and 1 deletions

View 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

View 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;