Temporary workaround for ppc on ppc
commit8d36ed3138b8d62cfcf3fdc20edfdf28931f425f
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 2 Apr 2009 01:16:39 +0000 (2 01:16 +0000)
committerMark McLoughlin <markmc@redhat.com>
Fri, 11 Sep 2009 10:38:03 +0000 (11 11:38 +0100)
treec320c966a4b791dab989531fc0fbcce90946078d
parent657729a3e9b058bf83a90ed2f0093cfce3963dc8
Temporary workaround for ppc on ppc

target-ppc/translate.c puts values of type opcode_t into .opcodes
section, using GCC extension to do so, and hoping that this will make
them appear contiguously and in the source order in the resulting
executable. This assumption is not safe and is known to be violated
with certain versions of GCC, certain flags passed to it and on
certain platforms (gcc 4.3.0, -O and PPC/PPC64 for instance)

The workaround consists of adding -fno-unit-at-a-time to the list of
GCC command line options while building PPC translate.o on a PPC.

(cherry picked from commit d19076faca944c31bb051b95d285e75ec67902f7)

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: qemu-ppc-on-ppc.patch
Makefile.target