aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-bfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/coff-bfd.c')
-rw-r--r--bfd/coff-bfd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/coff-bfd.c b/bfd/coff-bfd.c
index 8af084e..dd61bba 100644
--- a/bfd/coff-bfd.c
+++ b/bfd/coff-bfd.c
@@ -45,8 +45,9 @@ bfd_coff_get_syment (bfd *abfd,
*psyment = csym->native->u.syment;
if (csym->native->fix_value)
- psyment->n_value = psyment->n_value -
- (bfd_hostptr_t) obj_raw_syments (abfd);
+ psyment->n_value =
+ ((psyment->n_value - (bfd_hostptr_t) obj_raw_syments (abfd))
+ / sizeof (combined_entry_type));
/* FIXME: We should handle fix_line here. */