elflink: fix the global naming for lmalloc
authorFeng Tang <feng.tang@intel.com>
Tue, 8 Jun 2010 08:51:45 +0000 (16:51 +0800)
committerFeng Tang <feng.tang@intel.com>
Tue, 20 Jul 2010 03:10:03 +0000 (11:10 +0800)
core and com32 both have their lmalloc definition, change com32's
from lmalloc to clmalloc

com32/include/com32.h
com32/lib/Makefile
com32/lib/lmalloc.c
com32/lib/lstrdup.c

index 6b14208..f49f9ea 100644 (file)
@@ -120,7 +120,7 @@ extern const com32sys_t __com32_zero_regs;
 /*
  * Lowmem allocation functions
  */
-void *lmalloc(size_t);
+void *clmalloc(size_t);
 void *lzalloc(size_t);
 void lfree(void *);
 char *lstrdup(const char *);
index c7e7e7d..41ae34c 100755 (executable)
@@ -125,6 +125,10 @@ LIBOTHER_OBJS = \
        asprintf.o vasprintf.o strlcpy.o strlcat.o                      \
        vsscanf.o zalloc.o                                              \
        \
+       lmalloc.o lstrdup.o                                             \
+       \
+       dprintf.o vdprintf.o                                            \
+       \
        sys/readdir.o getcwd.o chdir.o fdopendir.o      \
        \
        libgcc/__ashldi3.o libgcc/__udivdi3.o                   \
index a646556..69438bd 100644 (file)
@@ -31,7 +31,7 @@
 #include <string.h>
 #include <syslinux/pmapi.h>
 
-void *lmalloc(size_t size)
+void *clmalloc(size_t size)
 {
     void *p;
     p = __com32.cs_pm->lmalloc(size);
index d11efe7..6747ef3 100644 (file)
@@ -9,7 +9,7 @@
 char *lstrdup(const char *s)
 {
     int l = strlen(s) + 1;
-    char *d = lmalloc(l);
+    char *d = clmalloc(l);
 
     if (d)
        memcpy(d, s, l);