aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-01-14 18:13:40 +0000
committerNick Clifton <nickc@redhat.com>2000-01-14 18:13:40 +0000
commit28240dcd30bd657bf678cc62554794ca69ed3987 (patch)
treef30413715cfb83918b39fd15691262c6e1d88290 /bfd/linker.c
parenta19d8eb03e2cf8ba0bf15f98e4f5b1e7d693b6f3 (diff)
downloadgdb-28240dcd30bd657bf678cc62554794ca69ed3987.zip
gdb-28240dcd30bd657bf678cc62554794ca69ed3987.tar.gz
gdb-28240dcd30bd657bf678cc62554794ca69ed3987.tar.bz2
fix mis-applied patch
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index cd7c4e1..6e9ee65 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -2749,7 +2749,10 @@ default_indirect_link_order (output_bfd, info, output_section, link_order,
/* Output the section contents. */
if (! bfd_set_section_contents (output_bfd, output_section,
(PTR) new_contents,
- link_order->offset, link_order->size))
+ (file_ptr)
+ (link_order->offset *
+ bfd_octets_per_byte (output_bfd)),
+ link_order->size))
goto error_return;
if (contents != NULL)