diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-17 23:07:31 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-17 23:07:31 +0000 |
commit | 82790064116b066531c8b61067509a0fd4169ee0 (patch) | |
tree | 3af63fc031eb29c8edfb0c688d5d63d82bc0afc7 /loader.c | |
parent | 06c0b38830a47cadec4ddaec1788466bf9753d85 (diff) | |
download | qemu-82790064116b066531c8b61067509a0fd4169ee0.zip qemu-82790064116b066531c8b61067509a0fd4169ee0.tar.gz qemu-82790064116b066531c8b61067509a0fd4169ee0.tar.bz2 |
Cast ELF datatypes properly to host 64bit types.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3407 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'loader.c')
-rw-r--r-- | loader.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -173,6 +173,7 @@ static void *load_at(int fd, int offset, int size) #define SZ 32 #define elf_word uint32_t +#define elf_sword int32_t #define bswapSZs bswap32s #include "elf_ops.h" @@ -182,6 +183,7 @@ static void *load_at(int fd, int offset, int size) #undef elf_sym #undef elf_note #undef elf_word +#undef elf_sword #undef bswapSZs #undef SZ #define elfhdr elf64_hdr @@ -190,6 +192,7 @@ static void *load_at(int fd, int offset, int size) #define elf_shdr elf64_shdr #define elf_sym elf64_sym #define elf_word uint64_t +#define elf_sword int64_t #define bswapSZs bswap64s #define SZ 64 #include "elf_ops.h" |