[fpc-devel] Error building branch targetandroid

Nico Erfurth ne at erfurth.eu
Sat Jul 7 13:20:05 CEST 2012


On 07.07.12 12:24, Felipe Monteiro de Carvalho wrote:
> On Sat, Jul 7, 2012 at 11:42 AM, Thomas Schatzl <tom_at_work at gmx.at> wrote:
>> The revision you have does not support the "rev" instruction when using
>> -CpARMv6. Use -CpARMv5 (or no switch, as it is the default) to create the
>> (cross-)compiler.
> 
> -CpARMv5 will generate instructions which crash many Android devices,
> including my own HTC Wildfire.

Have a look at rtl/arm/arm.inc and look for the SwapEndian functions. If
you disable them by putting some bogus ifdef around them, then the
generic functions will be used. So far this should be the only place
which has the rev instructions.

In theory an ARMv5 binary should not crash (at least not because of
invalid instructions) on your android device.

Nico






More information about the fpc-devel mailing list