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 Nick,

Thank you very much for your response.

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.

GCC port for cr16 is pending for review. Work is in progress on this.



> 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 ?

Opps, sorry. Its typo only.


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.

Attached -dA -dp out files (file name: test.c-dadp.tar.bz2). OK. I will file an bug report on this.

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.

I too see, it could be an issue with compiler generated debug info. As without -O2 (ie without optimization option), there is no issue with debug info.

Thanks
Swami

Attachment: test.c-dadp.tar.bz2
Description: Binary data


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