Messages in this thread | | | Date | Mon, 3 Aug 2009 23:33:32 -0400 | From | Kyle McMartin <> | Subject | Re: [PATCH] basic perf support for sparc |
| |
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
| |