Sign in Join

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

Mailing lists / lazarus / 2011-09

Lazarus Digest, Vol 44, Issue 106

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Hi Henry,
Thanks for answering.

This is the ELF output running on the actual box...

https://gist.github.com/1244760

There are 2 ELF outputs. The top one is the FreePascal one, while the bottom one is for mkdir.

We did notice that native exes list their OS as UNIX, while our exe lists it as ARM.

What are we doing wrong?

We did the cross-compilation build a month or so ago, so the details are a Tue, 27 Sep 2011 12:00:00 +0200, Henry Vermaak

Show quoted text 5 lines
From this it looks like you're not using eabi. How did you build the compiler and which binutils did you use? Henry

Reply by email

Henry Vermaak
to Unknown author
Show quoted text 12 lines
Hi Henry, Thanks for answering. This is the ELF output running on the actual box... https://gist.github.com/1244760 There are 2 ELF outputs. The top one is the FreePascal one, while the bottom one is for mkdir. We did notice that native exes list their OS as UNIX, while our exe lists it as ARM.

You'll probably need to pass -meabi=5 to arm-linux-as when you build fpc and your programs. Easiest way is to write a program called arm-linux-as.exe that calls the real assembler (that you renamed) with an added -meabi=5.

Henry

Reply by email

Henry Vermaak
to Henry Vermaak
Henry Vermaak wrote 18 lines
On 27/09/11 11:25, wrote: > Hi Henry, > Thanks for answering. > > This is the ELF output running on the actual box... > > https://gist.github.com/1244760 > > There are 2 ELF outputs. The top one is the FreePascal one, while the > bottom one is for mkdir. > > We did notice that native exes list their OS as UNIX, while our exe > lists it as ARM. You'll probably need to pass -meabi=5 to arm-linux-as when you build fpc and your programs. Easiest way is to write a program called arm-linux-as.exe that calls the real assembler (that you renamed) with an added -meabi=5.

Even better is to re-build the binutils with a target like arm-linux-eabi, which should set this by default. Tip: use a linux machine to build the binutils, it's much easier.

Henry

Reply by email

Henry Vermaak
to Henry Vermaak: You'll probably need to pass -meabi=5 to arm-linux-as when you build fpc and your…
Henry Vermaak wrote 18 lines
On 27/09/11 11:25, wrote: > Hi Henry, > Thanks for answering. > > This is the ELF output running on the actual box... > > https://gist.github.com/1244760 > > There are 2 ELF outputs. The top one is the FreePascal one, while the > bottom one is for mkdir. > > We did notice that native exes list their OS as UNIX, while our exe > lists it as ARM. You'll probably need to pass -meabi=5 to arm-linux-as when you build fpc and your programs. Easiest way is to write a program called arm-linux-as.exe that calls the real assembler (that you renamed) with an added -meabi=5.

Ah, from your original message I see that you're calling the assembler manually, in which case you only have to pass -meabi=5.

Reply by email