aboutsummaryrefslogtreecommitdiff
path: root/include/relocate.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/relocate.h')
-rw-r--r--include/relocate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/relocate.h b/include/relocate.h
index c4fad33612..26682da955 100644
--- a/include/relocate.h
+++ b/include/relocate.h
@@ -57,4 +57,10 @@ static inline void *manual_reloc(void *ptr)
return ptr;
}
+#if !defined(USE_HOSTCC) && defined(CONFIG_NEEDS_MANUAL_RELOC)
+#define MANUAL_RELOC(ptr) (ptr) = manual_reloc(ptr)
+#else
+#define MANUAL_RELOC(ptr) (void)(ptr)
+#endif
+
#endif /* _RELOCATE_H_ */