aboutsummaryrefslogtreecommitdiff
path: root/bfd/cofflink.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-01-13 22:10:36 +0000
committerNick Clifton <nickc@redhat.com>2000-01-13 22:10:36 +0000
commit9a968f43323ca8e2e800d0382bac9fbf9ad9b396 (patch)
treee849045af355b8a60a7a21fea3575bafcf380ec3 /bfd/cofflink.c
parentf45fbf876deab0568bd359788dbdaeabf4f22967 (diff)
downloadgdb-9a968f43323ca8e2e800d0382bac9fbf9ad9b396.zip
gdb-9a968f43323ca8e2e800d0382bac9fbf9ad9b396.tar.gz
gdb-9a968f43323ca8e2e800d0382bac9fbf9ad9b396.tar.bz2
Apply Tim walls octest vs bytes patch
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r--bfd/cofflink.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 1ab416d..1ad7c98 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -2425,7 +2425,10 @@ _bfd_coff_link_input_bfd (finfo, input_bfd)
if (secdata == NULL || secdata->stab_info == NULL)
{
if (! bfd_set_section_contents (output_bfd, o->output_section,
- contents, o->output_offset,
+ contents,
+ (file_ptr)
+ (o->output_offset *
+ bfd_octets_per_byte (output_bfd)),
(o->_cooked_size != 0
? o->_cooked_size
: o->_raw_size)))
@@ -2737,7 +2740,9 @@ _bfd_coff_reloc_link_order (output_bfd, finfo, output_section, link_order)
break;
}
ok = bfd_set_section_contents (output_bfd, output_section, (PTR) buf,
- (file_ptr) link_order->offset, size);
+ (file_ptr)
+ (link_order->offset *
+ bfd_octets_per_byte (output_bfd)), size);
free (buf);
if (! ok)
return false;