I'm working from the Angstrom distribution. I'm using the arm-2009q3-67-arm-none-linux-gnueabi compiler because that's the EABI compiler I had to hand. I started out with the intention of moving to an EABI environment (no OABI_COMPAT), however when my EABI ramfs did not work (kernel booted but barfed when executing init or sh) I decided to try and EABI executable in the OABI environment.
When compiling the "HelloWorld" I used the "-mabi=aapcs-linux" compiler option because that's what the kernel uses. Thanks, Pete ----- Original Message ----- From: "Khem Raj" <[email protected]> To: [email protected] Sent: Wednesday, February 3, 2010 10:59:42 AM GMT -05:00 US/Canada Eastern Subject: Re: [oe] EABI pain and frustration! On (03/02/10 15:43), Koen Kooi wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03-02-10 15:03, [email protected] wrote: > > > > My 2.6.29 kernel is built with the CodeSourcery > > arm-2009q3-67-arm-none-linux-gnueabi > > compiler and has the EABI and OABI_COMPAT config options enabled. Using > > this kernel > > I can boot my SA1110 iPaq into a OABI ramfs with no problems, however if I > > build a > > "HelloWorld" executable with the same compiler and try and run it I get an > > "Illegal Instruction" > > error. I build the test program using static linking, select the correct > > machine type and tune > > options but to no avail, I always get the illegal instruction. hmm just tune and machine opts wont be enough you have to chose right abi options too. because your userland is OABI thats what you should chose for helloworld too. > > Which MACHINE and DISTRO are you using in OE? And also: why CSL? > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > > iD8DBQFLaYuoMkyGM64RGpERAiBXAJ9EKxw1hWGKcmJGo5LlEsDmHYJ/wACfZ1Id > 3Jz3mIP5xiMAez+V8l63TQ0= > =aaua > -----END PGP SIGNATURE----- > > > _______________________________________________ > Openembedded-devel mailing list > [email protected] > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
