This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] STT_GNU_IFUNC support
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 15 Feb 2010 13:40:50 -0500
- Subject: Re: [patch] STT_GNU_IFUNC support
- References: <20100214203512.GA838@host0.dyn.jankratochvil.net>
On Sun, Feb 14, 2010 at 09:35:12PM +0100, Jan Kratochvil wrote:
> This implementation resolves ifunc in an uncached way by an inferior call any
> time the symbol resolution is needed. It does not try to pick out the jump
> address value from ".got.plt" as filled there by ld.so. (GDB stepping into
> library functions also does not try to do so.)
Do you mean that "print strcmp" or "break strcmp" is now going to do
an inferior call? That doesn't seem like a good idea to me. I would
like for some other maintainers to comment though.
Inferior calls are very slow, and they can go wrong (pending signals,
misbehaving programs, etc). I believe we should make an effort to
minimize them.
For user messages, maybe we should call these "indirect functions";
that's what ifunc is short for.
--
Daniel Jacobowitz
CodeSourcery