This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld: Dwarf Error: Offset
- From: Nick Clifton <nickc at redhat dot com>
- To: M R Swami Reddy <MR dot Swami dot Reddy at nsc dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 17 Nov 2008 17:12:49 +0000
- Subject: Re: ld: Dwarf Error: Offset
- References: <49215D51.5020706@nsc.com>
Hi Swami,
cr16-elf-gcc test.c -g -O2 -c // Compile with -O2 -g options
The FSF GCC sources do not currently support a "cr16-elf" target, so you
must be using some non-standard gcc. Quite possibly therefore this bug
is a gcc problem not a binutils one.
> cr16-elf-ld 6.o
You compiled "test.c" to "test.o" but you link a file called "6.o". Is
this a typo or are there two quite different object files involved here ?
cr16-elf-ld: Dwarf Error: Offset (150) greater than or equal to (null)
size (135098772).
Can you provide a copy of the assembler source file for us to look at.
Preferably one compiled with "-dA -dp". It would also help if you turn
this into an official bug report with the sourceware bugzilla system.
Could please suggest on this issue? Is it issue with compiler (ie gcc)
or linker (ie ld)?
It is probably a combination of both. Ie I suspect that gcc is
producing some broken debug information and that the assembler (or maybe
the linker) is failing to detect this and produce a more helpful error
message.
Cheers
Nick