Add compile option to parse ELF.

Change-Id: I64a81601d11e9fa383435bfd1a1d35206ebb2fc8
This commit is contained in:
Tao Bai 2014-03-26 22:05:24 -07:00
parent 2b06bf20ce
commit 9a80053099

View File

@ -34,6 +34,18 @@ int log_msg(const char *fmt, ...) {
}
#if defined(__GNUC__) && __GNUC__
#if defined(FORCE_PARSE_ELF)
#if defined(__MACH__)
#undef __MACH__
#endif
#if !defined(__ELF__)
#define __ELF__
#endif
#endif
#if defined(__MACH__)
#include <mach-o/loader.h>