RFA: Fix readelf -wi test (Was: Re: readelf: apply all rela relocations in the debug_info section)

Daniel Jacobowitz drow@mvista.com
Sat Apr 26 13:56:00 GMT 2003


On Sat, Apr 26, 2003 at 08:55:07AM +0100, Nick Clifton wrote:
> Hi Daniel,Hi Joern,
> 
> > > > +       ".*DW_AT_producer.*(GNU C|indirect string).*"
> > > > +       ".*DW_AT_language.*ANSI C.*"
> > > > +       ".*DW_AT_name.*(testprog.c|indirect string).*"
> > > > +       ".*DW_AT_name.*fn.*"
> > > > +       ".*DW_AT_name.*(main|indirect string).*"
> > > > +     }
> > > 
> > > At least for sh-elf, after the " \(indirect string, offset: 0x[0-9a-f]+\): "
> > > bit, it still displays the original string.  Are there any targets where
> > > this is not the case?
> > 
> > There should not be; if there are, it's a bug.  So I'd say the indirect
> > string bit can probably go.
> 
> Actually they are needed.  Without them the sh-elf sh64-elf and
> mn10300-elf ports will fail this test.  The problem is that we are
> running readelf on the object file not the executable, so there can be
> unresolved relocs in the debug info sections.

I'm confused.  Remember the original subject of this thread?  I thought
we should be applying all unresolved relocations now.

> Anyway I have added this line to the test and checked it in.

Thanks!

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list