[fpc-devel] Building cross-compiler for arm-linux on win32
Florian Klämpfl
florian at freepascal.org
Sun Dec 16 14:41:52 CET 2018
Am 16.12.2018 um 12:01 schrieb Nikolai Zhubr:
> Hi,
>
> 16.12.2018 13:51, I wrote:
> [...]
>> So inserting
>> ASTARGET+=-mfpu=softvfp
>> allowed full cross-build to succeed. I have yet to see if the generated
>> binaries are actually usable.
>
> Ok, now the resulting elf executable has this (supposedly correct) flag:
> private flags = 600: [APCS-32] [VFP float format] [software FP]
>
> And, helloworld still fails to run:
> Illegal instruction
>
> And, I still see tons of "ARM BLX instruction ..." warnings from ld of this kind:
>
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: arm\units\arm-linux\rautils.o: warning: ARM BLX instruction targets ARM
> function 'SYSTEM_$$_POS$CHAR$SHORTSTRING$$LONGINT'
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: arm\units\arm-linux\rautils.o: warning: ARM BLX instruction targets ARM
> function 'fpc_shortstr_copy'
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: arm\units\arm-linux\rautils.o: warning: ARM BLX instruction targets ARM
> function 'fpc_shortstr_to_shortstr'
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: arm\units\arm-linux\rautils.o: warning: ARM BLX instruction targets ARM
> function 'SYSTEM_$$_DELETE$OPENSTRING$LONGINT$LONGINT'
>
> Currently, my build command is:
> make OS_TARGET=linux CPU_TARGET=arm NOGDB=1 CROSSCOMPILE=1 CROSSOPT="-CpARMV6 -Cfsoft" all
>
> Any hints?
I followed the thread, but didn't find it: what binutils do you use?
More information about the fpc-devel
mailing list