diff options
Diffstat (limited to 'sim/rl78/load.c')
-rw-r--r-- | sim/rl78/load.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/rl78/load.c b/sim/rl78/load.c index 36dee73..d3e0379 100644 --- a/sim/rl78/load.c +++ b/sim/rl78/load.c @@ -29,7 +29,6 @@ #include "bfd.h" #include "elf-bfd.h" #include "elf/rl78.h" -#include "libbfd.h" #include "cpu.h" #include "mem.h" #include "load.h" @@ -140,13 +139,13 @@ rl78_load (bfd *prog, host_callback *callbacks, const char * const simname) buf = xmalloc (size); offset = p->p_offset; - if (prog->iovec->bseek (prog, offset, SEEK_SET) != 0) + if (bfd_seek (prog, offset, SEEK_SET) != 0) { fprintf (stderr, "%s, Failed to seek to offset %lx\n", simname, (long) offset); continue; } - if (prog->iovec->bread (prog, buf, size) != size) + if (bfd_bread (buf, size, prog) != size) { fprintf (stderr, "%s: Failed to read %lx bytes\n", simname, size); continue; |