This is the mail archive of the binutils@sources.redhat.com 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: gas dwarf2 assert failure for misaligned sections?


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

I tried implementing this, but the frags were all empty (i.e.  both
fr_file and fr_line were zero).

Is it worth going further, and finding out where those frags are
generated and fill them in?


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