[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/396] New: cannot assemble sparclet files
From: |
luke at diamand dot org |
Subject: |
[Bug gas/396] New: cannot assemble sparclet files |
Date: |
21 Sep 2004 10:06:55 -0000 |
If you try to compile with -Wa,-Asparclet using gcc, then the assembler will
abort on some files (those using sparclet insns?), reporting:
BFD 2.13 internal error, aborting at
/home/lgd/isos_tools/source/gnu/binutils-2.13/bfd/elf32-sp
arc.c line 2091 in elf32_sparc_final_write_processing
(This is in binutils 2.13, but it also happens in binutils 2.15, but at a
different line number - I just happen to be testing with 2.13 today).
It seems to be missing a clause in the switch statement in
elf32_sparc_final_write_processing().
My naive fix is just to add:
case bfd_mach_sparc_sparclet :
as per the context-diff at the end of this report. I don't know enough about
binutils to know if this is the correct way to fix this problem though.
Index: elf32-sparc.c
===================================================================
RCS file: /cvsroot/isos_tools/source/gnu/binutils-2.13/bfd/elf32-sparc.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 elf32-sparc.c
*** elf32-sparc.c 17 Mar 2003 14:25:40 -0000 1.1.1.1
--- elf32-sparc.c 21 Sep 2004 10:06:06 -0000
***************
*** 2066,2071 ****
--- 2066,2072 ----
switch (bfd_get_mach (abfd))
{
case bfd_mach_sparc :
+ case bfd_mach_sparc_sparclet :
break; /* nothing to do */
case bfd_mach_sparc_v8plus :
elf_elfheader (abfd)->e_machine = EM_SPARC32PLUS;
--
Summary: cannot assemble sparclet files
Product: binutils
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: luke at diamand dot org
CC: bug-binutils at gnu dot org
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sparc-elf32
http://sources.redhat.com/bugzilla/show_bug.cgi?id=396
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/396] New: cannot assemble sparclet files,
luke at diamand dot org <=