projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some places where octet to byte conversions are needed.
[deliverable/binutils-gdb.git]
/
bfd
/
syms.c
diff --git
a/bfd/syms.c
b/bfd/syms.c
index 118595d3d0f070c72983bb7f392f87b2a582eb99..5a22c0b38b8b325ebe1a9eeae7f9318c2abc7c8c 100644
(file)
--- a/
bfd/syms.c
+++ b/
bfd/syms.c
@@
-1083,11
+1083,13
@@
_bfd_stab_section_find_nearest_line (bfd *abfd,
return FALSE;
}
return FALSE;
}
- val = bfd_get_32 (abfd, info->stabs + r->address);
+ val = bfd_get_32 (abfd, info->stabs
+ + r->address * bfd_octets_per_byte (abfd));
val &= r->howto->src_mask;
sym = *r->sym_ptr_ptr;
val += sym->value + sym->section->vma + r->addend;
val &= r->howto->src_mask;
sym = *r->sym_ptr_ptr;
val += sym->value + sym->section->vma + r->addend;
- bfd_put_32 (abfd, (bfd_vma) val, info->stabs + r->address);
+ bfd_put_32 (abfd, (bfd_vma) val, info->stabs
+ + r->address * bfd_octets_per_byte (abfd));
}
}
}
}
This page took
0.037957 seconds
and
4
git commands to generate.