summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/user/emul.h16
-rwxr-xr-xruntime/user/recreate_links1
2 files changed, 17 insertions, 0 deletions
diff --git a/runtime/user/emul.h b/runtime/user/emul.h
index d6f0853e..3086a666 100644
--- a/runtime/user/emul.h
+++ b/runtime/user/emul.h
@@ -14,3 +14,19 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
#include <stdarg.h>
unsigned long strtoul(const char *nptr, char **endptr, int base);
#define simple_strtoul strtoul
+
+#define KALLSYMS_LOOKUP kallsyms_lookup
+
+const char *kallsyms_lookup (unsigned long addr,
+ unsigned long *symbolsize,
+ unsigned long *offset,
+ char **modname,
+ char *namebuf)
+{
+ static char buf[32];
+ sprintf (namebuf, "foobar");
+ sprintf (buf, "foobar_mod");
+ *offset = 1;
+ modname = (char **)&buf;
+ return namebuf;
+}
diff --git a/runtime/user/recreate_links b/runtime/user/recreate_links
index 080654e9..7b2f58d7 100755
--- a/runtime/user/recreate_links
+++ b/runtime/user/recreate_links
@@ -6,3 +6,4 @@ ln -s ../map-values.c .
ln -s ../map-keys.c .
ln -s ../list.c .
ln -s ../string.c .
+ln -s ../sym.c .