Commit a6cc84f49cc53ad87ab23097503917d1231ef4ad

Authored by malc
1 parent d538e8f5

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
Showing 1 changed file with 9 additions and 0 deletions
linux-user/elfload.c
... ... @@ -12,6 +12,15 @@
12 12 #include "qemu.h"
13 13 #include "disas.h"
14 14  
  15 +#ifdef __powerpc64__
  16 +#undef ARCH_DLINFO
  17 +#undef ELF_PLATFORM
  18 +#undef ELF_HWCAP
  19 +#undef ELF_CLASS
  20 +#undef ELF_DATA
  21 +#undef ELF_ARCH
  22 +#endif
  23 +
15 24 /* from personality.h */
16 25  
17 26 /*
... ...