public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* libffi on Cortex M4?
@ 2015-09-14 18:43 Tor Krill
  2015-09-14 19:08 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Tor Krill @ 2015-09-14 18:43 UTC (permalink / raw)
  To: libffi-discuss

Dear list,

I'm trying to crosscompile libffi for a Cortex-M4 platform running
uClinux but this fails miserably during compilation with a:

../src/arm/sysv.S: Assembler messages:
../src/arm/sysv.S:152: Error: selected processor does not support ARM
opcodes
../src/arm/sysv.S:154: Error: attempt to use an ARM instruction on a
Thumb-only processor -- `stmfd sp!,{r0-r3,fp,lr}'
../src/arm/sysv.S:156: Error: attempt to use an ARM instruction on a
Thumb-only processor -- `mov fp,sp'
../src/arm/sysv.S:161: Error: attempt to use an ARM instruction on a
Thumb-only processor -- `sub sp,fp,r2'

My question is simply, is thumb2 on a cortex m4 supported by libffi?
I.e. is it my build setup that is faulty and this should work or is this
unsupported?

sysv.S have indications that it should support thumb instructions but it
seems to be ignored when i compile libffi.

Best!

/Tor

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-15 11:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 18:43 libffi on Cortex M4? Tor Krill
2015-09-14 19:08 ` Richard Henderson
2015-09-15 11:52   ` Tor Krill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).