fix mis-applied patch
authorNick Clifton <nickc@redhat.com>
Fri, 14 Jan 2000 18:13:40 +0000 (18:13 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 14 Jan 2000 18:13:40 +0000 (18:13 +0000)
bfd/ChangeLog
bfd/linker.c

index fbb76a9073acf166a6b4500087b671ae18c83d10..a21a0b3558fe795a58019015e8380e196ba3da73 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-14  Nick Clifton  <nickc@cygnus.com>
+
+       * linker.c (default_indirect_link_order): oops - fix incorrectly
+       applied patch from Tim Wall.
+
 2000-01-13  Timothy Wall (twall@tiac.net>
 
        * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
index cd7c4e191bb1cdf1268d6a987d5c207a1101afcb..6e9ee65581b1a3eceaca902db117ed72fd2321ac 100644 (file)
@@ -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)