summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-19 17:04:52 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-19 17:04:51 -0800
commitef9871c7087e0b0e91ca7eff0908cebc148177e7 (patch)
tree7e0384f6674a09ffb8b3cc897e12b8cb70531c42 /scripts
parent5c097356593addad1a7830943de79e21a3eb5dd2 (diff)
parentefbe378b81e36d9ab6d3a2b3e0e2c3834c6a6528 (diff)
Merge "Merge branch 'v4.4-16.09-android-tmp' into lsk-v4.4-16.09-android"
Diffstat (limited to 'scripts')
-rw-r--r--scripts/recordmcount.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index e167592793a7..42396a74405d 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -33,10 +33,17 @@
#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