From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33791 invoked by alias); 14 Sep 2015 18:43:16 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 33778 invoked by uid 89); 14 Sep 2015 18:43:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtprelay-b32.telenor.se Received: from smtprelay-b32.telenor.se (HELO smtprelay-b32.telenor.se) (213.150.131.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 14 Sep 2015 18:43:14 +0000 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b32.telenor.se (Postfix) with ESMTP id 63D8BED8F0 for ; Mon, 14 Sep 2015 20:43:10 +0200 (CEST) X-SENDER-IP: [85.230.101.174] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DNcwCSFPdVPK5l5lVdGQQBgwQBAYEHhw62d4Fqh0Q7EgEBAQEBAQEGAQEBAUEdIkEBAgKEBzM7HQImAi8MCohfAacjj2qUSYEihRAFimSCUoFDBZI0gyOnfCgJgXwBAQgBAQEBgis8iAlHYoF+AQEB X-IPAS-Result: A2DNcwCSFPdVPK5l5lVdGQQBgwQBAYEHhw62d4Fqh0Q7EgEBAQEBAQEGAQEBAUEdIkEBAgKEBzM7HQImAi8MCohfAacjj2qUSYEihRAFimSCUoFDBZI0gyOnfCgJgXwBAQgBAQEBgis8iAlHYoF+AQEB Received: from c-ae65e655.125-1-64736c10.cust.bredbandsbolaget.se (HELO tor-desktop) ([85.230.101.174]) by ipb4.telenor.se with ESMTP; 14 Sep 2015 20:43:09 +0200 Received: from localhost (localhost [127.0.0.1]) by tor-desktop (Postfix) with ESMTP id EDDC64C00AC for ; Mon, 14 Sep 2015 20:43:08 +0200 (CEST) Message-ID: <1442256188.3397.27.camel@openproducts.com> Subject: libffi on Cortex M4? From: Tor Krill To: libffi-discuss@sourceware.org Date: Mon, 14 Sep 2015 18:43:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00086.txt.bz2 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