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?
> The address skips are encoded in units of DWARF2_LINE_MIN_INSN_LENGTH
> for efficiency on processors that have fixed instruction size larger
> than one byte (or all multiples of some value). You've just put
> nonsense in the instruction stream.
Yeah, I knew that. But what if the user knows that, and knows what
he's doing?
> > $ ./as-new -gdwarf2 dj.s
> > dj.s: Assembler messages:
> > dj.s:4: Internal error!
> > Assertion failure in size_inc_line_addr at ../../src/gas/dwarf2dbg.c line 616.
> > Please report this bug.
>
> I guess we should be emitting a normal error here rather than using
> an assert.
I'll work up a patch. Suggestions for wording?