libbfd and missing headers

Philip Prindeville philipp_subx@redfish-solutions.com
Sun Aug 26 02:05:00 GMT 2012


Hi.

I'm a contributor to Fedora, Poco, and a few other projects.  I'm trying to add line number information to Poco, using CentOS's binutils-devel (which includes libbfd.so/.a and <bfd.h>) for be used in conjunction with backtrace(), etc.

However, the packaging is missing <demangle.h>, <elf-bfd.h>, <bucomm.h>, etc.

I'm thinking at it would be nice if 80% of addr2line.c was turned into library code that was part of libbfd.a with an API, and then objdump.c and addr2line.c could just use that API (as well as my code, of course).

How feasible is this?

Thanks,

-Philip



More information about the Binutils mailing list