From: Zouzou <int...@12...> - 2011-07-05 18:52:12
|
On 05/07/11 20:22, LRN wrote: > On 05.07.2011 21:50, Zouzou wrote: >> On 05/07/11 19:27, LRN wrote: >>> Does anyone know how to build binutils with shared version of libbfd? I >>> need it to be able to build a bfd-using shared library (can't link >>> libbfd.a to it). >>> I've tried building binutils myself, but after hacking it a few times i >>> still get nothing useful. >> detailed answer on why you may not want to do that for applications >> other than those that are part of binutils itself: >> <http://cygwin.com/ml/cygwin/2011-06/msg00149.html> >> >> depending on what you need it for, there may be an alternative to >> achieving your goal that doesn't involve bfd (and iberty). >> in my case, this was for a call stack dumper and i managed to replace it >> with libdwarf<http://reality.sgiweb.org/davea/dwarf.html>. >> > That's right, i need bfd for getting stack trace info. > > Is your code available anywhere? i'll refrain from advertising here but a link to the bug report narrating the whole story comes up as the first Google result for the keywords "bfd libdwarf exception info". the code is in a CrashLogger.cpp file inside that project; under GPL license. it may not be completely reusable as is but should be easy enough to follow. good luck! Zouzou |