This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Mircea, All, On Sunday 06 November 2011 17:28:19 Mircea Gherzan wrote: > I am trying to build a Xscale/PXA linux-gnueabi toolchain by setting > CT_ARCH_ARCH to "iwmmxt" and CT_ARCH_CPU to "xscale". > > When I run a trivial binary (compiled with this toolchain) in QEMU via > qemu-arm -g 1234 -cpu pxa270 -L $PATH_TO_SYSROOT ./test AFAIK, pxa2xx do not have iwmmxt. iwmmxt is present only on pxa3xx and above. > I get a SIGILL because of a VSTM instruction which is only available on > VFPv2/3-enabled cores. > Program received signal SIGILL, Illegal instruction. > 0x40818f24 in ?? () > (gdb) disp/i $pc > 1: x/i $pc > => 0x40818f24: vstmia r12!, {d8-d15} Looks like you are building with hardware floating point, and your kernel does not have FP emulation. > AFAIK, PXA chips have iwMMXt but no VFP. Since my test binary is just a > main() with a "return 0", the problem should be in the ld-linux loader. > > How should I configure ct-ng for a proper toolchain for PXA (i.e. > without any VFP instructions in the libraries/loader)? The bundled sample arm-unknown-linux-uclibcgnueabi is configured for pxa25 (and it worked great on my pxa255 at the time I needed it): ct-ng arm-unknown-linux-uclibcgnueabi ct-ng build Here are the related configuration items: CT_ARCH_ARCH="armv5te" CT_ARCH_CPU="xscale" CT_ARCH_TUNE="xscale" CT_ARCH_FPU="" CT_ARCH_FLOAT_SW=y Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |