diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/command.c | 7 | ||||
-rw-r--r-- | common/dlmalloc.c | 5 | ||||
-rw-r--r-- | common/misc.c | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/common/command.c b/common/command.c index 5d8577f9eb..f3b3d360b3 100644 --- a/common/command.c +++ b/common/command.c @@ -137,6 +137,7 @@ void u_boot_cmd_usage(cmd_tbl_t *cmdtp) } #endif /* CONFIG_LONGHELP */ } +EXPORT_SYMBOL(u_boot_cmd_usage); /* * Use puts() instead of printf() to avoid printf buffer overflow @@ -198,7 +199,7 @@ U_BOOT_CMD_START(help) U_BOOT_CMD_HELP(cmd_help_help) U_BOOT_CMD_END -#ifdef CONFIG_MODULE +#ifdef CONFIG_MODULES struct cmd_list { cmd_tbl_t *cmd; struct cmd_list *next; @@ -237,12 +238,12 @@ cmd_tbl_t *find_cmd (const char *cmd) cmd_tbl_t *cmdtp_temp = &__u_boot_cmd_start; /*Init value */ int len; int n_found = 0; -#ifdef CONFIG_MODULE +#ifdef CONFIG_MODULES struct cmd_list *list = cmd_list; #endif len = strlen (cmd); -#ifdef CONFIG_MODULE +#ifdef CONFIG_MODULES while(list) { cmdtp = list->cmd; if (strncmp (cmd, cmdtp->name, len) == 0) { diff --git a/common/dlmalloc.c b/common/dlmalloc.c index a22fee530a..c4df2f0f78 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -2149,3 +2149,8 @@ History: structure of old version, but most details differ.) */ + +EXPORT_SYMBOL(malloc); +EXPORT_SYMBOL(free); +EXPORT_SYMBOL(realloc); + diff --git a/common/misc.c b/common/misc.c index 35fd8eb1ec..ee11ead87d 100644 --- a/common/misc.c +++ b/common/misc.c @@ -70,6 +70,7 @@ void *sbrk (ptrdiff_t increment) } int errno; +EXPORT_SYMBOL(errno); #ifndef CONFIG_ERRNO_MESSAGES static char errno_string[5]; @@ -151,6 +152,7 @@ const char *errno_str(void) return errno_string; #endif } +EXPORT_SYMBOL(errno_str); void perror(const char *s) { |