* i386linux.c (i386linux_write_object_contents): Define; like
authorIan Lance Taylor <ian@airs.com>
Wed, 15 Jun 1994 17:15:03 +0000 (17:15 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 15 Jun 1994 17:15:03 +0000 (17:15 +0000)
MY(write_object_contents) in aout-target.h, but set MACHTYPE to
M_386.  From jrs@world.std.com (Rick Sladkey).
(MY_write_object_contents): Define.

bfd/ChangeLog
bfd/i386linux.c

index 9153cf755bd5a34d389ec1e2c5432fc9ec7d567f..14d2a111498022ad058d34eaaaebef5275f739a6 100644 (file)
@@ -1,5 +1,10 @@
 Wed Jun 15 01:34:07 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * i386linux.c (i386linux_write_object_contents): Define; like
+       MY(write_object_contents) in aout-target.h, but set MACHTYPE to
+       M_386.  From jrs@world.std.com (Rick Sladkey).
+       (MY_write_object_contents): Define.
+
        * aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
        as N_DATA symbols.
        (aout_link_add_symbols): Likewise.
index 4e699e3d41e7a50be9fe3f078b91823647e0b9cd..97fc6a0e1b58ec3a5ea95ea01f183a9b6c0ad3cb 100644 (file)
@@ -56,4 +56,24 @@ i386linux_bfd_final_link (abfd, info)
 
 #define MY_bfd_final_link i386linux_bfd_final_link
 
+/* Set the machine type correctly.  */
+
+static boolean
+i386linux_write_object_contents (abfd)
+     bfd *abfd;
+{
+  struct external_exec exec_bytes;
+  struct internal_exec *execp = exec_hdr (abfd);
+
+  N_SET_MACHTYPE (*execp, M_386);
+
+  obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
+
+  WRITE_HEADERS(abfd, execp);
+
+  return true;
+}
+
+#define MY_write_object_contents i386linux_write_object_contents
+
 #include "aout-target.h"