From: Joerg S. <jo...@br...> - 2010-07-19 22:22:08
|
Hi all, the first time I looked at libelf, it didn't work on NetBSD due to various macros and types missing from NetBSD's elf.h. This has been addressed in the mean time by adding another bunch of #if's. The same applies for FreeBSD. When people want to use libelf on Solaris or Linux, I expect it to grow another set of conditionals. This brings me to my question of whether this is really the best approach. Wouldn't it be much easier if libelf provide its own elf.h replacement with predictable content based on the libelf version and nothing else? This would also make it easier to use ELF (and DWARF) as intermediate formats for compiler and other toolchain stuff. Joerg |