projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decouple inferior_ptid/inferior_thread(); dup ptids in thread list (PR 25412)
[deliverable/binutils-gdb.git]
/
sim
/
m32c
/
load.c
diff --git
a/sim/m32c/load.c
b/sim/m32c/load.c
index 23c89f8b1c888834f0255c825dc07fd7c1114bc9..8db4a92951c620bbad0f26abaa72aff2192a8645 100644
(file)
--- a/
sim/m32c/load.c
+++ b/
sim/m32c/load.c
@@
-1,6
+1,6
@@
/* load.c --- loading object files into the M32C simulator.
/* load.c --- loading object files into the M32C 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.
@@
-74,11
+74,11
@@
m32c_load (bfd * prog)
remains as a reminder. */
if ((s->flags & SEC_ALLOC) && !(s->flags & SEC_READONLY))
{
remains as a reminder. */
if ((s->flags & SEC_ALLOC) && !(s->flags & SEC_READONLY))
{
- if (strcmp (bfd_
get_section_name (prog,
s), ".stack"))
+ if (strcmp (bfd_
section_name (
s), ".stack"))
{
int secend =
{
int secend =
- bfd_
get_section_size (s) + bfd_section_lma (prog,
s);
- if (heaptop < secend && bfd_section_lma (
prog,
s) < 0x10000)
+ bfd_
section_size (s) + bfd_section_lma (
s);
+ if (heaptop < secend && bfd_section_lma (s) < 0x10000)
{
heaptop = heapbottom = secend;
}
{
heaptop = heapbottom = secend;
}
@@
-91,14
+91,14
@@
m32c_load (bfd * prog)
bfd_size_type size;
bfd_vma base;
bfd_size_type size;
bfd_vma base;
- size = bfd_
get_
section_size (s);
+ size = bfd_section_size (s);
if (size <= 0)
continue;
if (size <= 0)
continue;
- base = bfd_section_lma (
prog,
s);
+ base = bfd_section_lma (s);
if (verbose)
fprintf (stderr, "[load a=%08x s=%08x %s]\n",
if (verbose)
fprintf (stderr, "[load a=%08x s=%08x %s]\n",
- (int) base, (int) size, bfd_
get_section_name (prog,
s));
+ (int) base, (int) size, bfd_
section_name (
s));
buf = (char *) malloc (size);
bfd_get_section_contents (prog, s, buf, 0, size);
mem_put_blk (base, buf, size);
buf = (char *) malloc (size);
bfd_get_section_contents (prog, s, buf, 0, size);
mem_put_blk (base, buf, size);
This page took
0.023841 seconds
and
4
git commands to generate.