diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-20 22:39:28 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-20 22:39:28 +0000 |
commit | a6cc84f49cc53ad87ab23097503917d1231ef4ad (patch) | |
tree | 84611bbcad85767c5091087250c393bcdc8c8a04 /linux-user/elfload.c | |
parent | d538e8f50d89a66ae14a2cf351d2e0e5365d463b (diff) | |
download | qemu-a6cc84f49cc53ad87ab23097503917d1231ef4ad.zip qemu-a6cc84f49cc53ad87ab23097503917d1231ef4ad.tar.gz qemu-a6cc84f49cc53ad87ab23097503917d1231ef4ad.tar.bz2 |
Kludge to support linux-user on a PPC64
Some headers (e.g. signal.h) include asm/elf.h and the chaos of macro
redefinitions ensues, this kludge avoids it.
Alternative way to fight that would be to change all ELF_XXX and some
other definitions to QEMU_ELF_XXX or something to that effect.
This patch concludes the quest for enabling linux-user on PPC64,
however, since qemu_mallocz uses mmap and, at least on this system,
mmap tends to return values that do not fit into 32bit, emulation for
32bit targets does not work without some hacks wich are to disgusting
to commit (and as `man mmap' tells us MAP_32BIT is only implemented on
X86_64)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5037 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r-- | linux-user/elfload.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 67b7535..32767c0 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -12,6 +12,15 @@ #include "qemu.h" #include "disas.h" +#ifdef __powerpc64__ +#undef ARCH_DLINFO +#undef ELF_PLATFORM +#undef ELF_HWCAP +#undef ELF_CLASS +#undef ELF_DATA +#undef ELF_ARCH +#endif + /* from personality.h */ /* |