This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld: Dwarf Error: Offset


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]