Sign in Join

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

Mailing lists / fpc-pascal / 2008-06

Re: FPC_ARMEL ld-linux.so.3

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Nataraj S Narayan

Hi

I find that in my qemu emulated machine , /lib/ld-linux.so.3 is actually a symink to /lib/ld-2.7.so.

Whereas in my target Arm machine it is just ld-linux.so.3. Could this be any problem ?

regards

Nataraj

Nataraj S Narayan wrote 65 lines
Hi Henry, Luca I got a 'ppcarm' after compiling the fpc-svn. I copied the pparm to the qemu-system-arm emulated machine and tried to compile a Helloworld.pas. fpc showed some errors related to FPU and stopped. Then i copied many *.o and *.ppu files from host to qemu machine. This time fpc compiled and linked the crt0.o and system.o and few other file, and the program worked. But when i copied to the actual target AT91SAM9263 , it wont work - just waits endlessly. strace in the target gives:- syscall(0x90004c,0x3,0xbebd6de8,0xbebd6df0,0x40000) = -1 EINTR (Interrupted system call) And finally a bad file descriptor. Exit(0). The architecture is "armvtejl" in both target as well as the emulated machine. I tried generating assembler files in emulated and the assembling in the target. But getting same. What could be done now? regards Nataraj On Wed, Jun 4, 2008 at 3:33 AM, Henry Vermaak wrote: > 2008/6/3 Luca Olivetti > > > > the syscall number should be put in r7 > > Also the alignment of the parameters in the registers is different. > > Of course I cannot make head or tails of syscall.inc, so it's possible > that > > everything is already done as it should be. > > mov r7, r0 puts the syscall nr into r7. i haven't looked at the > alignment, though :-\ > > "With EABI, 64-bit function parameters passed in registers are aligned > to an even-numbered register instead of using the next available > pair." > > what output does: > > qemu-arm -strace hello > > give? (run on your i386 after cross-compiling) > > did you compile this with the 2.18 binutils? my qemu-arm is happy > with my simple hello program. even does writeln(2/3) properly. > > henry > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >

Reply by email

Luca Olivetti
to Nataraj S Narayan
Nataraj S Narayan wrote 7 lines
Hi I find that in my qemu emulated machine , /lib/ld-linux.so.3 is actually a symink to /lib/ld-2.7.so <http://ld-2.7.so>. Whereas in my target Arm machine it is just ld-linux.so.3. Could this be any problem ?

I'm in no way an expert but I don't think so: in my n800 there's only ld-linux.so.3 and the hello program works *but* I've cross-compiled it: up until now I haven't succeeded in building a native eabi compiler (as you can see from my messages the linker under scratchbox, from the codesourcery toolchain, gives an error).
I'd say you should update your fpc sources from svn and rebuild the compiler, since Florian committed a couple of important fixes for eabi in the last few days.

Bye

Luca

Reply by email