This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: N_SO stabs corrupted after linking
- From: Nick Clifton <nickc at redhat dot com>
- To: hoogerbrugge at hotmail dot com
- Cc: binutils at sources dot redhat dot com
- Date: 28 Jan 2003 12:05:57 +0000
- Subject: Re: N_SO stabs corrupted after linking
- References: <F146bDt3HvoFOAmEaJs0000c613@hotmail.com>
Hi Jan,
> I have ported binutils to a new target. The problem that I encounter
> is that the string fields of N_SO stabs are corrupted after
> linking. When I dump the debugging info by means of objdump -G I see
> that the N_SO entries of the .o files are correct but the N_SO entries
> of the linker output are corrupted. Only the two entries of the first
> module are correct. Any idea what could be wrong? Is it the port? Is
> it the linker script that I use?
It could be either, but I strongly suspect the port. You will have to
investigate further to find out. My guess is that when the stabs are
being merged together some excess, garbage bytes are being inserted
between the input sections, making the output stabs section corrupt.
Cheers
Nick