[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/13104] New: ARM unified syntax: "b 0" with -mcpu=cortex-m3 cras
From: |
tmbinc at elitedvb dot net |
Subject: |
[Bug gas/13104] New: ARM unified syntax: "b 0" with -mcpu=cortex-m3 crashes gas |
Date: |
Tue, 16 Aug 2011 23:30:30 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13104
Bug #: 13104
Summary: ARM unified syntax: "b 0" with -mcpu=cortex-m3 crashes
gas
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
Created attachment 5901
--> http://sourceware.org/bugzilla/attachment.cgi?id=5901
repro assembly file
With ".syntax unified" and -mcpu=cortex-m3, a "b" with an immediate operand
crashes as.
$ cat crash.S
.syntax unified
b 0
$ arm-none-eabi-as -mcpu=cortex-m3 crash.S
Segmentation fault
$ gdb --args arm-none-eabi-as -mcpu=cortex-m3 crash.S
[...]
(gdb) bt
#0 S_IS_DEFINED (s=0x0) at ../../binutils-2.21/gas/symbols.c:2034
#1 0x0807e9c0 in relax_branch (fragp=0x81583d0, sec=0x0, bits=11, stretch=0)
at ../../binutils-2.21/gas/config/tc-arm.c:18917
#2 0x080829dc in arm_relax_frag (sec=0x8157678, fragp=0x81583d0, stretch=0) at
../../binutils-2.21/gas/config/tc-arm.c:18985
#3 0x0806a036 in relax_segment (segment_frag_root=0x81583d0,
segment=0x8157678, pass=0) at ../../binutils-2.21/gas/write.c:2653
#4 0x0806a34e in relax_seg (abfd=0x8142108, sec=0x0, xxx=0xbffff664) at
../../binutils-2.21/gas/write.c:542
#5 0x08096c2c in bfd_map_over_sections (abfd=0x8142108, operation=0x806a320
<relax_seg>, user_storage=0xbffff664) at ../../binutils-2.21/bfd/section.c:1251
#6 0x0806a4e8 in write_object_file () at ../../binutils-2.21/gas/write.c:1783
#7 0x0804c370 in main (argc=2, argv=0x81422d0) at
../../binutils-2.21/gas/as.c:1263
$ arm-none-eabi-as --version
GNU assembler (GNU Binutils) 2.21
Copyright 2010 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `arm-none-eabi'.
--
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/13104] New: ARM unified syntax: "b 0" with -mcpu=cortex-m3 crashes gas,
tmbinc at elitedvb dot net <=