[fpc-pascal] fpc on Armel issues
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Aug 25 14:37:51 CEST 2009
On 25 Aug 2009, at 14:16, Nataraj S Narayan wrote:
> Fpc compiled binary:-
> root at at91sam9263ek:~$ readelf -h firework
> ELF Header:
> Flags: 0x5000002, has entry point,
> Version5 EABI
>
> Other Binary:-
> root at at91sam9263ek:~$ readelf -h formshow
> ELF Header:
> Flags: 0x4000002, has entry point,
> Version4 EABI
>
> Could it be that arm-linux is not ready for Version5 EABI?
You arm-linux system is indeed apparently EABI version 4, while you
generated an EABI version 5 binary. The default version is determined
by the assembler that you use. It's possible to pass an option to the
assembler to generate EABI version 4 object files (-meabi=4), but FPC
does not have provisions to let you pass options to the assembler.
What you can however do is replace your assembler with a shell script
that contains basically
#!/bin/sh
/path/to/original/as -meabi=4 $@
Even better would be to upgrade your Linux system to one based on
version 5 of the EABI, because version 4 was only a prerelease and
only meant for testing use.
Jonas
More information about the fpc-pascal
mailing list