Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]
On 06 Jul 2007, at 12:37, Luca Olivetti wrote: FPC can do both, but syscalls are default because these binaries are more portable across distributions (and versions) than glibc and thus easier to deploy. (and recently, libc has been broken after the introduction of the new syscalls. There is a release blocking bugentry for that in Mantis, so I expect that to be solved soon). But are they OABI or EABI under arm (or is there no difference?). I don't think anyone has ever tried to use the libc-based rtl with linux/arm. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]
En/na Jonas Maebe ha escrit: On 06 Jul 2007, at 12:37, Luca Olivetti wrote: FPC can do both, but syscalls are default because these binaries are more portable across distributions (and versions) than glibc and thus easier to deploy. (and recently, libc has been broken after the introduction of the new syscalls. There is a release blocking bugentry for that in Mantis, so I expect that to be solved soon). But are they OABI or EABI under arm (or is there no difference?). I don't think anyone has ever tried to use the libc-based rtl with linux/arm. And without using libc, what kind of syscalls do fpc generate OABI or EABI? (or, again, is there no difference between the two?) Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]
On 08 Jul 2007, at 18:06, Luca Olivetti wrote: I don't think anyone has ever tried to use the libc-based rtl with linux/arm. And without using libc, what kind of syscalls do fpc generate OABI or EABI? (or, again, is there no difference between the two?) I have no idea. You could try comparing /usr/include/asm/unistd.h on an OABI and EABI system for a start, although that will tell you nothing about which parameters have to be passed and in what way (only the syscall numbers themselves). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]
En/na Jonas Maebe ha escrit: On 08 Jul 2007, at 18:06, Luca Olivetti wrote: I don't think anyone has ever tried to use the libc-based rtl with linux/arm. And without using libc, what kind of syscalls do fpc generate OABI or EABI? (or, again, is there no difference between the two?) I have no idea. You could try comparing /usr/include/asm/unistd.h on an OABI and EABI system for a start, although that will tell you nothing about which parameters have to be passed and in what way (only the syscall numbers themselves). supposedly (I'm not really into system level programming) oabi syscalls start at 0x90, while eabi ones start at 0, so, by looking at rtl/linux/arm/sysnr.inc it seems that fpc should be generating oabi calls, so my problems with arm are coming from somewhere else. Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]
Am Sonntag, den 08.07.2007, 19:31 +0200 schrieb Luca Olivetti: > En/na Jonas Maebe ha escrit: > > > > On 08 Jul 2007, at 18:06, Luca Olivetti wrote: > > > >>> I don't think anyone has ever tried to use the libc-based rtl with > >>> linux/arm. > >> > >> And without using libc, what kind of syscalls do fpc generate OABI or > >> EABI? (or, again, is there no difference between the two?) > > > > I have no idea. You could try comparing /usr/include/asm/unistd.h on an > > OABI and EABI system for a start, although that will tell you nothing > > about which parameters have to be passed and in what way (only the > > syscall numbers themselves). > > supposedly (I'm not really into system level programming) oabi syscalls > start at 0x90, while eabi ones start at 0, so, by looking at > rtl/linux/arm/sysnr.inc it seems that fpc should be generating oabi > calls, so my problems with arm are coming from somewhere else. Can't you try to write a simple program using the functions in question and compile with "fpc -al"? That way the assembler source should show some useful information about the system calls in use. HTH, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]
En/na Marc Santhoff ha escrit: Can't you try to write a simple program using the functions in question and compile with "fpc -al"? the syscalls are in the rtl, so they won't show up in my program (not that I understand asm assambler, but according to http://sourceware.org/ml/libc-ports/2005-11/msg00028.html the syscall is "swi 0x0900." and there's no "swi" instruction in my code). Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal