ftrace/recordmcount: Work around for addition of metag magic but not relocations
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / scripts / recordmcount.c
index ee625e3a56ba894ffa5e0f0ba1352b624a637b34..4f7d13da04a5408576f0efc86d86505bd5d30185 100644 (file)
 #include <string.h>
 #include <unistd.h>
 
+/*
+ * glibc synced up and added the metag number but didn't add the relocations.
+ * Work around this in a crude manner for now.
+ */
 #ifndef EM_METAG
-/* Remove this when these make it to the standard system elf.h. */
 #define EM_METAG      174
+#endif
+#ifndef R_METAG_ADDR32
 #define R_METAG_ADDR32                   2
+#endif
+#ifndef R_METAG_NONE
 #define R_METAG_NONE                     3
 #endif