Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-12

Windows -> arm-linux (eabi) crossbinutils

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort

Hello crosscompilers,

After a break, I've picked up generating crossbinutils again, and I succesfully generated win32->arm-elf-linux crossbins.

I used these for e.g. Sheevaplug crosscompiling

ftp://ftp.freepascal.org/pub/fpc/contrib/cross/binutils-2.20-arm-linux-elf.zip

Note that FPC is a bit troublesome in the sense that it wants to run an exe as assembler on windows.

Therefore, if you want to pass extra parameters to as, you can't simply make a wrapper shell script like on unix.

A simple skeleton source for making a simple wrapper is in the "fpcbuild" archive:

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/install/cross/aswrapper.pas?root=fpcbuild&view=log

I compile this and rename the result to arm-linux-as.exe. This allows me to pass -meabi=4 to AS, as required by sheeva.

One can see the require eabi version on the device by executing by e.g.

cd /usr/lib
readelf -h crt1.o |grep Flags

(install elfutils if necessary)

Greetings

Marco

Reply by email