diff options
author | DJ Delorie <dj@redhat.com> | 1999-05-11 21:06:16 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 1999-05-11 21:06:16 +0000 |
commit | 09cda596de63a115baf24952deae289298a67a87 (patch) | |
tree | a052a9fcba4ca4a13957a6b7bb678e9e388d143d /binutils/rescoff.c | |
parent | ec0ef80e9f48ae59958cfe0ff8a998881833ca12 (diff) | |
download | gdb-09cda596de63a115baf24952deae289298a67a87.zip gdb-09cda596de63a115baf24952deae289298a67a87.tar.gz gdb-09cda596de63a115baf24952deae289298a67a87.tar.bz2 |
1999-05-10 DJ Delorie <dj@cygnus.com>
* windres.c (quot): Quote shell metacharacters in a string
(main): quote parameters to cpp that might have metacharacters in
them. Allow -D as an alias for --define to allow for sharing make
macros with gcc.
* objdump.c (dump_reloc_set): don't core if howto->name is NULL
* Makefile.am: Give rescoff.c a cpu-specific -D so it can set
the correct BFD.
* Makefile.in: ditto
* rescoff.c (write_coff_file): Set the correct BFD
Diffstat (limited to 'binutils/rescoff.c')
-rw-r--r-- | binutils/rescoff.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/rescoff.c b/binutils/rescoff.c index 9a028c7..fe2487a 100644 --- a/binutils/rescoff.c +++ b/binutils/rescoff.c @@ -447,9 +447,14 @@ write_coff_file (filename, target, resources) if (! bfd_set_format (abfd, bfd_object)) bfd_fatal ("bfd_set_format"); +#ifdef DLLTOOL_ARM + if (! bfd_set_arch_mach (abfd, bfd_arch_arm, 0)) + bfd_fatal ("bfd_set_arch_mach(arm)"); +#else /* FIXME: This is obviously i386 specific. */ if (! bfd_set_arch_mach (abfd, bfd_arch_i386, 0)) - bfd_fatal ("bfd_set_arch_mach"); + bfd_fatal ("bfd_set_arch_mach(i386)"); +#endif /* arm */ if (! bfd_set_file_flags (abfd, HAS_SYMS | HAS_RELOC)) bfd_fatal ("bfd_set_file_flags"); |