What causes the 'BFD: Dwart Error:' ?
PRC
panruochen@gmail.com
Tue Mar 11 10:19:00 GMT 2008
1.c
-----------------------------------------
#if 1
static char mydata1[0x2000] __attribute__(( section(".1.c") ));
#endif
int half(int x)
{
return x/2;
}
3.c
-----------------------------------------
static char mydata3[0x2000] __attribute__(( section(".3.c") ));
link.xn
-----------------------------------------
OUTPUT_ARCH(mips)
ENTRY(main)
SECTIONS
{
.text 0x80051000 :
{
*(.text)
*(.rodata*)
}
.data :
{
*(.data)
*(.sdata)
}
.bss :
{
*(.sbss)
*(.scommon)
*(.bss)
*(COMMON)
*(.1.c)
*(.2.c)
*(.3.c)
}
}
build
-----------------------------------------
sde-gcc -O0 -g -W -O0 -g -mips32r2 -EL -c -mno-abicalls -fno-pic -G0 -o 1.o 1.c
sde-gcc -O0 -g -W -O0 -g -mips32r2 -EL -c -mno-abicalls -fno-pic -G0 -o 3.o 3.c
sde-ld -r -EL -T link.xn -n -o a.out 1.o 3.o
sde-objdump -dS a.out >a.lst
BFD: Dwarf Error: found dwarf version '0', this reader only handles version 2 information.
If I comment out definition of `mydata1' in 1.c, the objdump error disappear as well.
How does this error occur?
Best Regards
PRC
2008/3/11
More information about the Binutils
mailing list