bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/12296] cortex-m3: SVC is not permitted on this architecture


From: dan at wellkeeper dot com
Subject: [Bug gas/12296] cortex-m3: SVC is not permitted on this architecture
Date: Tue, 29 Mar 2011 19:52:27 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12296

--- Comment #2 from Dan McDonald <dan at wellkeeper dot com> 2011-03-29 
19:52:08 UTC ---
Created attachment 5340
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5340
update ARM_AEXT_V7_ARM macro to include ARM_OS_EXT flag

This also affects target arm-none-eabi. Like Claudio, I am also trying to
compile FreeRTOS. 

It looks like the v7 processor profile (which the Cortex-M3 is an example of)
neglects to mark the "os" extension as being available.

I attached a diff against CVS that fixes this issue for me. The patch updates
the ARM_AEXT_V7_ARM macro to also include the ARM_OS_EXT flag. I believe that
all v7 processors have the SVC instruction (based on the v7-M and v7-AR
reference manuals).

$ echo 'svc 0' > /tmp/x.s
$ arm-none-eabi-as -mcpu=cortex-m3 /tmp/x.s -o /tmp/x.o
$ arm-none-eabi-objdump -d /tmp/x.o

/tmp/x.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <.text>:
   0:    df00          svc    0

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]