[Bug gas/12198] New: SVC in thumb assembler forces M-profile attribute

2010-11-06 Thread rearnsha at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12198

   Summary: SVC in thumb assembler forces M-profile attribute
   Product: binutils
   Version: 2.21 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sources.redhat.com
ReportedBy: rearn...@gcc.gnu.org
CC: mgret...@sourceware.org
Target: arm-eabi


Assemble the following testcase using the assemblers auto-selection of
attributes mode (ie no CPU/arch selection on the command line, and no
directives in sources).

.thumb
.global f
.type f, %function
f:
svc 0xab
bx lr

arm-none-eabi-as -o t1.o t1.s
arm-none-eabi-readelf -A t1.o
Attribute Section: aeabi
File Attributes
  Tag_CPU_arch: v6S-M
  Tag_CPU_arch_profile: Microcontroller
  Tag_THUMB_ISA_use: Thumb-1
  Tag_DIV_use: Not allowed

There's nothing in this file that forces this to M-profile.  Indeed, it can
even do this if the object file contains ARM assembly instructions.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12198] SVC in thumb assembler forces M-profile attribute

2010-11-06 Thread Matthew.Gretton-Dann at arm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12198

--- Comment #1 from Matthew.Gretton-Dann at arm dot com 2010-11-06 16:30:28 UTC 
---
Hi,

I am out of the office until Monday 8th November 2010, and will not be reading
email.

If you have an urgent issue please get in touch with Richard Earnshaw.

Otherwise, I will get back to you as soon as possible after I am back in the
office.

Thanks,

Matt

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils