ld: Dwarf Error: Offset
M R Swami Reddy
MR.Swami.Reddy@nsc.com
Tue Nov 18 12:37:00 GMT 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c-dadp.tar.bz2
Type: application/octet-stream
Size: 4237 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20081118/8e6ccb3f/attachment.obj>
More information about the Binutils
mailing list