1 Index: uClibc-0.9.28.2/ldso/ldso/dl-hash.c
2 ===================================================================
3 --- uClibc-0.9.28.2.orig/ldso/ldso/dl-hash.c 2007-11-09 03:35:13.193591913 +0100
4 +++ uClibc-0.9.28.2/ldso/ldso/dl-hash.c 2007-11-09 03:52:41.713343652 +0100
9 +void (*__uClibc_main)(void *main, int argc, char **argv, void (*app_init)(void), void (*app_fini)(void), void *, void *) = NULL;
10 +int (*main)(int argc, char **argv, char **envp) = NULL;
12 +__uClibc_start_main(int argc, char **argv, char **envp,
13 + void (*app_fini)(void), void (*app_init)(void))
15 + __uClibc_main(main, argc, argv, app_init, app_fini, NULL, NULL);
20 * This function resolves externals, and this is either called when we process
23 char *weak_result = NULL;
25 + if (_dl_strcmp(name, "__uClibc_start_main") == 0) {
26 + main = _dl_find_hash("main", rpnt, mytpnt, type_class);
27 + __uClibc_main = _dl_find_hash("__uClibc_main", rpnt, mytpnt, type_class);
28 + return (char *) &__uClibc_start_main;
31 elf_hash_number = _dl_elf_hash(name);
33 for (; rpnt; rpnt = rpnt->next) {
34 Index: uClibc-0.9.28.2/Makefile
35 ===================================================================
36 --- uClibc-0.9.28.2.orig/Makefile 2007-11-09 03:54:20.814991133 +0100
37 +++ uClibc-0.9.28.2/Makefile 2007-11-09 03:58:56.346692786 +0100
42 -DIRS = ldso libc libcrypt libresolv libnsl libutil libm libpthread librt
43 -ifeq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
48 ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
52 @$(MAKE) -C libc shared
53 @$(MAKE) -C ldso shared
54 - @$(MAKE) -C libcrypt shared
55 - @$(MAKE) -C libresolv shared
56 - @$(MAKE) -C libnsl shared
57 - @$(MAKE) -C libutil shared
58 - @$(MAKE) -C libm shared
59 - @$(MAKE) -C libpthread shared
60 - @$(MAKE) -C librt shared
61 -ifeq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
62 - @$(MAKE) -C libintl shared
66 $(SECHO) Not building shared libraries ...