Re: [PATCH] basic perf support for sparc

From: Kyle McMartin
Date: Mon Aug 03 2009 - 23:33:58 EST


On Sun, Aug 02, 2009 at 10:54:30PM -0300, Arnaldo Carvalho de Melo wrote:
> The problem is that at least on f11, libbfd.so is a... linker script,
> not an ELF shared library as the name seemed to imply.
>

Ugh, that's weird. My fedora boxes are the same, but it's correctly a
symlink on my Debian box.
lrwxrwxrwx 1 root root 26 Aug 3 23:30 /usr/lib/libbfd.so ->
libbfd-2.19.51.20090723.so

Kind of strange it's a reference to bfd.a too. :/

> But if I cheat and do a dlopen on the full name, that includes the
> version, it works. Argh, I don't know why this has to be so contorted,
> does anybody here understands this?
>
> Anyway, the reworked patch below works and additionally doesn't dlopens
> at each DSO, but just once and only if it finds a symbol starting with
> an underscore, an heuristic to avoid loading bfd if we don't need it.
>

Looks better than mine. :)

cheers, Kyle
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/