This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: fake symbols to aid debugging
On Tue, Jul 29, 2003 at 03:51:42PM +0930, Alan Modra wrote:
> On Mon, Jul 28, 2003 at 09:16:04PM -0700, Geoff Keating wrote:
> > Alan Modra <amodra@bigpond.net.au> writes:
> >
> > > On Mon, Jul 28, 2003 at 11:11:07PM -0400, Daniel Jacobowitz wrote:
> > > > Would it be feasible for the linker to
> > > > generate a DWARF compilation unit for these stubs, and fill it with
> > > > DW_AT_trampoline markers?
> > >
> > > Yes, I could do that. Doesn't solve my disassembly problem though,
> > > does it? Even if gdb is clever enough to rummage through dwarf info
> > > for calls via stubs, I'd like to have objdump -d print useful symbols.
> >
> > Why not change objdump so that it either:
> > - understands appropriate bits of DWARF; or
> > - understands stubs?
>
> Making objdump understand DWARF might be the best option. I probably
> should be emitting DWARF for the stubs anyway.
I like this in general - we could mark PLT stubs this way on other
architectures, thereby fixing one of my longest-standing gripes about
reading disassembly.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer