lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 4 Aug 2009 13:23:00 +0200
From:	Frederic Riss <frederic.riss@...il.com>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc:	Ingo Molnar <mingo@...e.hu>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Kyle McMartin <kyle@...artin.ca>,
	Jens Axboe <jens.axboe@...cle.com>,
	Anton Blanchard <anton@...ba.org>, davem@...emloft.net,
	linux-kernel@...r.kernel.org, fweisbec@...il.com,
	benh@...nel.crashing.org, penberg@...helsinki.fi,
	vegard.nossum@...il.com, paulus@...ba.org, williams@...hat.com
Subject: Re: [PATCH] basic perf support for sparc

2009/8/4 Peter Zijlstra <a.p.zijlstra@...llo.nl>:
> On Tue, 2009-08-04 at 12:32 +0200, Frederic Riss wrote:
>> If all you want is C++ symbols demangling, why not just look for the
>> c++filt binary on the system? It accepts mangled names on its stdin
>> and outputs the demangled name on stdout.  You can keep it running in
>> the background, and communicate through pipes. Of course it's not as
>> effective as a library call, but I guess that it'll be much more
>> generic and also much more likely to be found on a developer's system
>> than a libbfd shared library.
>
> Oddly enough c++filt uses libbfd :-)
>
> $ ldd `which c++filt`
>        linux-gate.so.1 =>  (0xffffe000)
>        libbfd-2.19.1.so => /usr/lib/libbfd-2.19.1.so (0xf7de9000)
>        libz.so.1 => /lib/libz.so.1 (0xf7dd3000)
>        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xf7c6f000)
>        /lib/ld-linux.so.2 (0xf7ef9000)

Hehe... It depends how distro build it. IIRC, the default binutils
configure links statically, but I might be wrong. Anyway, this
approach still has the advantage that the binary is called 'c++filt'
and not c++filt-2.19.1-fc11 :-)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ