[Bug target/13922] New: Incomplete COFF format support
m4341 at abc dot se
gcc-bugzilla@gcc.gnu.org
Thu Jan 29 15:53:00 GMT 2004
There seems to be variations in the COFF format, more specific that the Texas
Instruments compiler cl470 generates a different structure of the coff format.
The interesting thing is that both the gcc generated and the TI generated coff
format is readable with the coff2elf utility found at
http://www.arm.com/support/downloads/info/2320.html.
I'm not sure if this problem actually belongs to the "binutils" package.
Two different coff2elf outputs provided:
Texas Instrument object file:
=============================
R:\coff>coff2elf -r t_ti_arm_coff.obj
Header
======
ID = 0xc2
date : Thu Jan 29 15:28:20 2004
number of sections = 4
number of symbol table entries = 14
size of auxiliary header = 0
flags=0x200 ( BIG )
Sections
========
.text: (1)
address: physical=0x0, virtual=0x0
data: size=0x8, pointer=0xd6
relocations: size=0, pointer=0x0
line numbers: size=0, pointer=0x0
flags=0x220 ( TEXT alignment=4 )
.data: (2)
address: physical=0x0, virtual=0x0
data: size=0x0, pointer=0x0
relocations: size=0, pointer=0x0
line numbers: size=0, pointer=0x0
flags=0x240 ( DATA alignment=4 )
.bss: (3)
address: physical=0x0, virtual=0x0
data: size=0x0, pointer=0x0
relocations: size=0, pointer=0x0
line numbers: size=0, pointer=0x0
flags=0x280 ( BSS alignment=4 )
.text:v$0: (4)
address: physical=0x0, virtual=0x0
data: size=0x8, pointer=0xde
relocations: size=1, pointer=0xe6
line numbers: size=0, pointer=0x0
flags=0x4240 ( DATA CLINK alignment=4 )
Relocation entries:
0x00000004 : PCR24W : 0001 (.text)
GCC Object File:
================
R:\coff>coff2elf -r t_gcc_arm_coff.o
Header
======
ID = 0xa00
date : Thu Jan 01 00:00:00 1970
number of sections = 3
number of symbol table entries = 8
size of auxiliary header = 0
flags=0x4d04 ( LNNO LITTLE )
Sections
========
.text: (1)
address: physical=0x0, virtual=0x0
data: size=0x28, pointer=0x8c
relocations: size=1, pointer=0xb4
line numbers: size=0, pointer=0x0
flags=0x20 ( TEXT )
Relocation entries:
0x00000010 : 0x10 : 0007 (___gccmain)
.data: (2)
address: physical=0x0, virtual=0x0
data: size=0x0, pointer=0x0
relocations: size=0, pointer=0x0
line numbers: size=0, pointer=0x0
flags=0x40 ( DATA )
.bss: (3)
address: physical=0x0, virtual=0x0
data: size=0x0, pointer=0x0
relocations: size=0, pointer=0x0
line numbers: size=0, pointer=0x0
flags=0x80 ( BSS )
--
Summary: Incomplete COFF format support
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: m4341 at abc dot se
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-cygwin
GCC target triplet: arm-coff-gcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13922
More information about the Gcc-bugs
mailing list