X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Frx%2Fload.c;h=fcf3bf385443e2040c272ca9e8b225f6994cd36d;hb=17fc27167f678285d2f64040837b8cc41b6a664a;hp=f6fc56e8545df013bea164823cfb37f124fd921b;hpb=d98bfeb0233c622e936bdda16ff03277077f5ca2;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/rx/load.c b/sim/rx/load.c index f6fc56e854..fcf3bf3854 100644 --- a/sim/rx/load.c +++ b/sim/rx/load.c @@ -1,6 +1,6 @@ /* load.c --- loading object files into the RX simulator. -Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc. +Copyright (C) 2005-2020 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of the GNU simulators. @@ -25,7 +25,6 @@ along with this program. If not, see . */ #include #include "bfd.h" -#include "libbfd.h" #include "cpu.h" #include "mem.h" #include "load.h" @@ -53,7 +52,7 @@ find_section_name_by_offset (bfd *abfd, file_ptr filepos) for (s = abfd->sections; s; s = s->next) if (s->filepos == filepos) - return bfd_get_section_name (abfd, s); + return bfd_section_name (s); return "(unknown)"; } @@ -146,12 +145,12 @@ rx_load (bfd *prog, host_callback *callback) } offset = p->p_offset; - if (prog->iovec->bseek (prog, offset, SEEK_SET) != 0) + if (bfd_seek (prog, offset, SEEK_SET) != 0) { fprintf (stderr, "Failed to seek to offset %lx\n", (long) offset); continue; } - if (prog->iovec->bread (prog, buf, size) != size) + if (bfd_bread (buf, size, prog) != size) { fprintf (stderr, "Failed to read %lx bytes\n", size); continue;