projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
sim
/
rx
/
load.c
diff --git
a/sim/rx/load.c
b/sim/rx/load.c
index f88feb698f537cdb8fc5da838225a60ef58f7495..fcf3bf385443e2040c272ca9e8b225f6994cd36d 100644
(file)
--- a/
sim/rx/load.c
+++ b/
sim/rx/load.c
@@
-1,6
+1,6
@@
/* load.c --- loading object files into the RX simulator.
/* load.c --- loading object files into the RX simulator.
-Copyright (C) 2005-20
16
Free Software Foundation, Inc.
+Copyright (C) 2005-20
20
Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
@@
-25,7
+25,6
@@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <string.h>
#include "bfd.h"
#include <string.h>
#include "bfd.h"
-#include "libbfd.h"
#include "cpu.h"
#include "mem.h"
#include "load.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)
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)";
}
return "(unknown)";
}
@@
-146,12
+145,12
@@
rx_load (bfd *prog, host_callback *callback)
}
offset = p->p_offset;
}
offset = p->p_offset;
- if (
prog->iovec->b
seek (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;
}
{
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;
{
fprintf (stderr, "Failed to read %lx bytes\n", size);
continue;
This page took
0.023424 seconds
and
4
git commands to generate.