diff options
Diffstat (limited to 'sim/rx')
-rw-r--r-- | sim/rx/gdb-if.c | 4 | ||||
-rw-r--r-- | sim/rx/load.c | 2 | ||||
-rw-r--r-- | sim/rx/trace.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index ef88146..68e4b96 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -164,14 +164,14 @@ build_swap_list (struct bfd *abfd) struct swap_list *sl; bfd_size_type size; - size = bfd_get_section_size (s); + size = bfd_section_size (s); if (size <= 0) continue; sl = malloc (sizeof (struct swap_list)); assert (sl != NULL); sl->next = swap_list; - sl->start = bfd_section_lma (abfd, s); + sl->start = bfd_section_lma (s); sl->end = sl->start + size; swap_list = sl; } diff --git a/sim/rx/load.c b/sim/rx/load.c index 65451ca..a9b596b 100644 --- a/sim/rx/load.c +++ b/sim/rx/load.c @@ -52,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)"; } diff --git a/sim/rx/trace.c b/sim/rx/trace.c index ed65d19..a4ea680 100644 --- a/sim/rx/trace.c +++ b/sim/rx/trace.c @@ -228,7 +228,7 @@ sim_get_current_source_location (const char ** pfilename, if (s->flags & SEC_CODE || code_section == 0) { code_section = s; - code_base = bfd_section_lma (current_bfd, s); + code_base = bfd_section_lma (s); break; } } |