This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gas dwarf2 assert failure for misaligned sections?
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: amodra at bigpond dot net dot au, <binutils at sources dot redhat dot com>
- Date: Wed, 27 Nov 2002 16:10:23 -0500 (EST)
- Subject: Re: gas dwarf2 assert failure for misaligned sections?
On Tue, 26 Nov 2002, DJ Delorie wrote:
> > I guess we should be emitting a normal error here rather than using
> > an assert.
>
> I tried to get the right file/line info, but by the time we're
> encoding dwarf2 info (esp wrt relaxing the dwarf2 frags), we've lost
> track of where the error really occurred.
Correct line and file info should be in the frag being
processed. Passing it or the frag through to out_inc_line_addr
to emit_inc_line_addr and doesn't help?
> *************** out_set_addr (seg, frag, ofs)
> *** 596,601 ****
> --- 597,623 ----
> + as_bad("unaligned opcodes detected in executable segment");
Space before (.
brgds, H-P