aboutsummaryrefslogtreecommitdiff
path: root/dyngen.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-04 00:52:16 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-04 00:52:16 +0000
commit7a2d6d9650ed16b2cdb0b4876fe9efce7ef8ea6d (patch)
treed04c25dc8d69c16630c86c8efdd341c7caef6dbd /dyngen.c
parent4ad5b06d6a655edd7b352581428ff3e37e7b8db1 (diff)
downloadqemu-7a2d6d9650ed16b2cdb0b4876fe9efce7ef8ea6d.zip
qemu-7a2d6d9650ed16b2cdb0b4876fe9efce7ef8ea6d.tar.gz
qemu-7a2d6d9650ed16b2cdb0b4876fe9efce7ef8ea6d.tar.bz2
64bit->win32 cross build fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2467 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen.c')
-rw-r--r--dyngen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dyngen.c b/dyngen.c
index c6a878c..953b36c 100644
--- a/dyngen.c
+++ b/dyngen.c
@@ -148,11 +148,11 @@ typedef uint64_t host_ulong;
#ifdef CONFIG_FORMAT_COFF
-#include "a.out.h"
-
typedef int32_t host_long;
typedef uint32_t host_ulong;
+#include "a.out.h"
+
#define FILENAMELEN 256
typedef struct coff_sym {
@@ -1740,7 +1740,7 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
{
EXE_SYM *sym;
const char *sym_name, *p;
- unsigned long val;
+ host_ulong val;
int n;
for(i = 0, sym = symtab; i < nb_syms; i++, sym++) {
@@ -1772,7 +1772,7 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
#ifdef CONFIG_FORMAT_MACH
offset -= section_hdr[sym->n_sect-1].addr;
#endif
- val = *(unsigned long *)(ptr + offset);
+ val = *(host_ulong *)(ptr + offset);
#ifdef ELF_USES_RELOCA
{
int reloc_shndx, nb_relocs1, j;