Commit 9a800530 authored by Tao Bai's avatar Tao Bai
Browse files

Add compile option to parse ELF.

Change-Id: I64a81601d11e9fa383435bfd1a1d35206ebb2fc8
parent 2b06bf20
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment