aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-i386.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1991-11-27 16:56:08 +0000
committerSteve Chamberlain <sac@cygnus>1991-11-27 16:56:08 +0000
commit3b4f1a5d05c9dc94e6708eecaf9ed8dc9832a48a (patch)
tree4de7774dea8c7c38bf75cc4fce2aa22ffa5a2118 /bfd/coff-i386.c
parenta33336a38e3ef7c5bee3d79d7d258ebd7788b87a (diff)
downloadgdb-3b4f1a5d05c9dc94e6708eecaf9ed8dc9832a48a.zip
gdb-3b4f1a5d05c9dc94e6708eecaf9ed8dc9832a48a.tar.gz
gdb-3b4f1a5d05c9dc94e6708eecaf9ed8dc9832a48a.tar.bz2
* Makefile.in: added coff-h8300
* configure.in: now h8 is a coff target * cpu-h8300.c: fix various disassembly problems * libcoff.h: took out some code which has been #0ed for a long time. * targets.c: added h8 coff * coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c added new macro RTYPE2HOWTO to take a load of #ifdefs out of coffcode.h * coffcode.h: Started to change the way machine dependencies are handled, from the nest of #ifdefs to macros defined in the including coff-<foo>.c
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r--bfd/coff-i386.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index c5c3dd6..14149b8 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -20,13 +20,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* $Id$ */
-#define I386 1
-#include <ansidecl.h>
-#include <sysdep.h>
#include "bfd.h"
+#include "sysdep.h"
#include "libbfd.h"
#include "obstack.h"
-#include "i386coff.h"
+#include "coff-i386.h"
#include "internalcoff.h"
#include "libcoff.h"
@@ -60,6 +58,11 @@ static reloc_howto_type howto_table[] =
#define SELECT_RELOC(x,howto) { x = howto->type; }
#define BADMAG(x) I386BADMAG(x)
+#define I386 1 /* Customize coffcode.h */
+
+#define RTYPETOHOWTO(cache_ptr, dst) \
+ cache_ptr->howto = howto_table + dst.r_type;
+
#include "coffcode.h"
#define coff_write_armap bsd_write_armap
@@ -70,7 +73,7 @@ bfd *a ;
bfd_target i386coff_vec =
{
- "i386coff", /* name */
+ "coff-i386", /* name */
bfd_target_coff_flavour,
false, /* data byte order is little */
false, /* header byte order is little */