diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-15 17:15:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-15 17:15:03 +0000 |
commit | f7d2fa445537d69b604398d526f6eb1819e2ed8a (patch) | |
tree | 33b4e373962e0c3fedf91d66fd71f7bdef47c91e /bfd/i386linux.c | |
parent | adf05987e20d1f236ddc4d234cb8b7955f26d9ba (diff) | |
download | gdb-f7d2fa445537d69b604398d526f6eb1819e2ed8a.zip gdb-f7d2fa445537d69b604398d526f6eb1819e2ed8a.tar.gz gdb-f7d2fa445537d69b604398d526f6eb1819e2ed8a.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/i386linux.c')
-rw-r--r-- | bfd/i386linux.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bfd/i386linux.c b/bfd/i386linux.c index 4e699e3..97fc6a0 100644 --- a/bfd/i386linux.c +++ b/bfd/i386linux.c @@ -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" |