[fpc-pascal] FPC_ARMEL system calls

Florian Klaempfl florian at freepascal.org
Sun Jun 1 15:05:01 CEST 2008


Luca Olivetti schrieb:
> En/na Luca Olivetti ha escrit:
>> En/na Florian Klaempfl ha escrit:
>>
>>>> The latter is the recent change to use the correct dynamic linker, 
>>>> and the former to change the alignment of some structures (required 
>>>> by the eabi specification).
>>>
>>> Indeed, i_linux sets e.g. the calling conventions to eabi and this is 
>>> what the compiler/rtl check further one.
>>
>> Definitely not my day today: I didn't notice the abi field.
>> Sorry for wasting your time.
> 
> Well, I'll go on wasting it ;-)
> 
> grepping for abi_eabi I found that the different syscall convention is 
> in rtl/linux/arm/syscall.inc, but it is conditioned to FPC_ABI_EABI, not 
> to FPC_ARMEL, so in order to have a fully eabi compliant compiler should 
> I use "-dFPC_ARMEL -dFPC_ABI_EABI"?

The changed abi field in the system info record causes FPC_ABI_EABI 
being defined. Same for softfloat. -dFPC_ARMEL should be enough and 
triggering everything else.



More information about the fpc-pascal mailing list