Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.misty.com!news.iecc.com!.POSTED!nerds-end From: "John R. Levine" Newsgroups: comp.compilers Subject: ELF and DWARF tools ? Date: 29 Dec 2014 00:42:03 -0500 Organization: Compilers Central Lines: 18 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <14-12-005@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: miucha.iecc.com 1419831778 63945 2001:470:1f07:1126:0:676f:7373:6970 (29 Dec 2014 05:42:58 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 29 Dec 2014 05:42:58 +0000 (UTC) Keywords: linker, question Posted-Date: 29 Dec 2014 00:42:57 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1448 I am working on a project which involves building a compiler toolchain for yet another architecture. The obvious object format to use is ELF and DWARF, and I'm trying to figure out the least painful way to do that. One possibility is the GNU bfd/binutils route. That's very complete, and very large. Another is libelf and libdwarf, which seem (from googlage) to have good reputations. Because I am a lazy programmer, I would like to do as much of the prototyping as I can in python. I see PyBFD which claims that it wraps much of the BFD libraries. Any suggestions? Are there python wrappers for libelf or libdwarf? How hard is it to add a new architecture to BFD or libelf? Signed, Bitwhacked