projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* config.in: Regenerate.
[binutils-gdb.git]
/
gdb
/
dsrec.c
diff --git
a/gdb/dsrec.c
b/gdb/dsrec.c
index 4d7586b500efa74b476200fd4997e08d94ec00c8..39d3f3c862dd23b0f7e01d16c604184e901d5642 100644
(file)
--- a/
gdb/dsrec.c
+++ b/
gdb/dsrec.c
@@
-90,6
+90,7
@@
load_srec (struct serial *desc, const char *file, bfd_vma load_offset,
if (s->flags & SEC_LOAD)
{
int numbytes;
+
bfd_vma addr = bfd_get_section_vma (abfd, s) + load_offset;
bfd_size_type size = bfd_get_section_size (s);
char *section_name = (char *) bfd_get_section_name (abfd, s);