Temporary workaround for ppc on ppcqemu-0.10.5-3.fc11
commita4e3a2894bcbe34281119706992616f8fe3b1b15
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, 24 Jun 2009 16:39:34 +0000 (24 17:39 +0100)
tree821cb60acb09297df623ed3f5877360280219fcd
parent98a7f1c7f29a6b1ff14255c103de9cd658e06d41
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>
Makefile.target