Temporary workaround for ppc on ppcqemu-0.10.6-1.fc11qemu-0.10.6-2.fc11
commit5214d6fb4d94934822644ddacf2281be30c89ee5
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 2 Apr 2009 01:16:39 +0000 (2 01:16 +0000)
committerMark McLoughlin <markmc@redhat.com>
Wed, 5 Aug 2009 11:21:52 +0000 (5 12:21 +0100)
tree234b256c29d92882f34ec1ec8fb3322cad3dea1c
parentee5f4386ca4dd3190c6dded2884685b444ec8894
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