ref: 9a80053099eaf038356eaef2d58e4ccf71fe265f
parent: 2b06bf20ce7e6ead8ea43dc9ad5bcc6674fee8d8
author: Tao Bai <michaelbai@chromium.org>
date: Wed Mar 26 18:05:24 EDT 2014
Add compile option to parse ELF. Change-Id: I64a81601d11e9fa383435bfd1a1d35206ebb2fc8
--- a/build/make/obj_int_extract.c
+++ b/build/make/obj_int_extract.c
@@ -34,6 +34,18 @@
}
#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>
--
⑨