aboutsummaryrefslogtreecommitdiff
path: root/include/coff/arm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-02-24 19:49:18 +0000
committerNick Clifton <nickc@redhat.com>2000-02-24 19:49:18 +0000
commit056350c6bd025c6b73b25f39247c890581b215b1 (patch)
tree3ee95df831c15874e7550cddf4a55cdc2002dfdd /include/coff/arm.h
parent8a0e0f38af77d6c38cdf9a257b55b4a06ce09124 (diff)
downloadgdb-056350c6bd025c6b73b25f39247c890581b215b1.zip
gdb-056350c6bd025c6b73b25f39247c890581b215b1.tar.gz
gdb-056350c6bd025c6b73b25f39247c890581b215b1.tar.bz2
Add support for WinCE targeted toolchains.
Diffstat (limited to 'include/coff/arm.h')
-rw-r--r--include/coff/arm.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/coff/arm.h b/include/coff/arm.h
index d5163f8..7ca9329 100644
--- a/include/coff/arm.h
+++ b/include/coff/arm.h
@@ -85,10 +85,16 @@ struct external_filehdr
* XXX - NC 5/6/97
*/
-#define ARMMAGIC 0xa00 /* I just made this up */
+#define ARMMAGIC 0xa00 /* I just made this up */
#define ARMBADMAG(x) (((x).f_magic != ARMMAGIC))
+#define ARMPEMAGIC 0x1c0
+#define THUMBPEMAGIC 0x1c2
+
+#undef ARMBADMAG
+#define ARMBADMAG(x) (((x).f_magic != ARMMAGIC) && ((x).f_magic != ARMPEMAGIC) && ((x).f_magic != THUMBPEMAGIC))
+
#define FILHDR struct external_filehdr
#define FILHSZ 20
@@ -272,6 +278,18 @@ union external_auxent
#define _ETEXT "etext"
/********************** RELOCATION DIRECTIVES **********************/
+#ifdef ARM_WINCE
+struct external_reloc
+{
+ char r_vaddr[4];
+ char r_symndx[4];
+ char r_type[2];
+};
+
+#define RELOC struct external_reloc
+#define RELSZ 10
+
+#else
struct external_reloc
{
char r_vaddr[4];
@@ -282,3 +300,4 @@ struct external_reloc
#define RELOC struct external_reloc
#define RELSZ 14
+#endif