aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-09-25 18:14:29 +0000
committerSteve Chamberlain <sac@cygnus>1992-09-25 18:14:29 +0000
commit8ad2a31dd85032ffcb59db205aa1dbbf32f0bf42 (patch)
treed1bb5a41dce1060c04e8300ff3d8a5cde21290b9 /bfd/coffcode.h
parent22a78f0d961fdab4eadf6694a636a6b57d3013ad (diff)
downloadgdb-8ad2a31dd85032ffcb59db205aa1dbbf32f0bf42.zip
gdb-8ad2a31dd85032ffcb59db205aa1dbbf32f0bf42.tar.gz
gdb-8ad2a31dd85032ffcb59db205aa1dbbf32f0bf42.tar.bz2
Fri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* coff-z8k.c: getting closer * coffcode.h (coff_get_relocated_section_contents): allow EXTRA_CASES hooks for different arches to provide different reloc types. * seclet.h: #ifndef around it to allow multiple inclusion * srec.c: minor doc fix
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index dfe7127..17f6283 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2657,10 +2657,15 @@ DEFUN(coff_write_object_contents,(abfd),
internal_a.magic = PAGEMAGICBCS;
#endif /* M88 */
-#if M68 || I386 || MIPS || WE32K
+#if M68 || MIPS || WE32K
#define __A_MAGIC_SET__
/* Never was anything here for the 68k */
-#endif /* M68 || I386 || MIPS || WE32K */
+#endif /* M68 || MIPS || WE32K */
+
+#if I386
+# define __A_MAGIC_SET__
+ internal_a.magic = ZMAGIC;
+#endif /* I386 */
#if RS6000COFF_C
#define __A_MAGIC_SET__
@@ -4162,9 +4167,13 @@ DEFUN(bfd_coff_get_relocated_section_contents,(in_abfd, seclet, data),
dst_address+=2;
src_address+=2;
break;
-
+#ifdef EXTRA_CASES
+ EXTRA_CASES
+#else
+
default:
abort();
+#endif
}
}
}