Commit 143b0955 authored by Johann's avatar Johann Committed by Gerrit Code Review
Browse files

Merge "Add compile option to parse ELF."

Showing with 12 additions and 0 deletions
...@@ -34,6 +34,18 @@ int log_msg(const char *fmt, ...) { ...@@ -34,6 +34,18 @@ int log_msg(const char *fmt, ...) {
} }
#if defined(__GNUC__) && __GNUC__ #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__) #if defined(__MACH__)
#include <mach-o/loader.h> #include <mach-o/loader.h>
......
Supports Markdown
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