(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) Languages and Compilers :
Why does gcc's -mcpu=601 option produce broken executables?
At least up until DR2.1, MkLinux doesn't save and restore a register
specific to the 601 (the MQ register) which gcc uses when you give it
the -mcpu=601 option. This causes it to be corrupted every time there
is an interrupt, which not surprisingly causes problems with any
program using it.

The only obvious solution is not to use the -mcpu=601 option.
-mcpu=powerpc is a similar but slower substitute.

- Geoff Keating <Geoff.Keating@anu.edu.au>
Geoff.Keating@anu.edu.au
This is fixed in at least DR2.1u4 and later.
Geoff.Keating@anu.edu.au
[Append to This Answer]
Previous: (Answer) When linking I get an unresolved symbol of __trampoline_setup, what gives?
Next: (Answer) Qt - how to compile for MkLinux?
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=152
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo