OSDN Git Service

Eliminate the useless _dl_interpreter_exit function
authorEric Andersen <andersen@codepoet.org>
Fri, 27 Apr 2001 19:27:16 +0000 (19:27 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 27 Apr 2001 19:27:16 +0000 (19:27 -0000)
ldso/ldso/boot1.c
ldso/ldso/i386/dl-sysdep.h
ldso/ldso/i386/ld_sysdep.h
ldso/ldso/i386/sysdep.h
ldso/ldso/ld-uClibc.c
ldso/ldso/ldso.c

index dd66b51..3b613fb 100644 (file)
@@ -151,7 +151,6 @@ unsigned int * _dl_envp;
   RESULT = hash; \
 }
 extern int _dl_linux_resolve(void);
-extern int _dl_interpreter_exit(int);
 extern char * _dl_strdup(const char *);
 extern char * _dl_getenv(char * symbol, char ** envp);
 extern void _dl_unsetenv(char * symbol, char ** envp);
@@ -997,9 +996,3 @@ char * _dl_strdup(const char * string){
   return retval;
 }
 
-/* In principle we could do the .fini stuff here, but we already
-   registered this stuff with atexit */
-int _dl_interpreter_exit(int exitcode){
-/*  _dl_fdprintf(2, "Hey, look where I am!\n"); */
-  return 0;
-}
index bf3d43b..2011049 100644 (file)
 
 /*
  * Transfer control to the user's application, once the dynamic loader
- * is done.
+ * is done.  This routine has to exit the current function, then 
+ * call the _dl_elf_main function.
  */
-
 #define START()                \
        __asm__ volatile ("leave\n\t" \
                    "jmp *%%eax\n\t"    \
-                   : "=a" (status) :   \
-                   "d" (_dl_interpreter_exit), "a" (_dl_elf_main))
+                   : "=a" (status) :   "a" (_dl_elf_main))
 
 
 
index bf3d43b..2011049 100644 (file)
 
 /*
  * Transfer control to the user's application, once the dynamic loader
- * is done.
+ * is done.  This routine has to exit the current function, then 
+ * call the _dl_elf_main function.
  */
-
 #define START()                \
        __asm__ volatile ("leave\n\t" \
                    "jmp *%%eax\n\t"    \
-                   : "=a" (status) :   \
-                   "d" (_dl_interpreter_exit), "a" (_dl_elf_main))
+                   : "=a" (status) :   "a" (_dl_elf_main))
 
 
 
index bf3d43b..2011049 100644 (file)
 
 /*
  * Transfer control to the user's application, once the dynamic loader
- * is done.
+ * is done.  This routine has to exit the current function, then 
+ * call the _dl_elf_main function.
  */
-
 #define START()                \
        __asm__ volatile ("leave\n\t" \
                    "jmp *%%eax\n\t"    \
-                   : "=a" (status) :   \
-                   "d" (_dl_interpreter_exit), "a" (_dl_elf_main))
+                   : "=a" (status) :   "a" (_dl_elf_main))
 
 
 
index dd66b51..3b613fb 100644 (file)
@@ -151,7 +151,6 @@ unsigned int * _dl_envp;
   RESULT = hash; \
 }
 extern int _dl_linux_resolve(void);
-extern int _dl_interpreter_exit(int);
 extern char * _dl_strdup(const char *);
 extern char * _dl_getenv(char * symbol, char ** envp);
 extern void _dl_unsetenv(char * symbol, char ** envp);
@@ -997,9 +996,3 @@ char * _dl_strdup(const char * string){
   return retval;
 }
 
-/* In principle we could do the .fini stuff here, but we already
-   registered this stuff with atexit */
-int _dl_interpreter_exit(int exitcode){
-/*  _dl_fdprintf(2, "Hey, look where I am!\n"); */
-  return 0;
-}
index dd66b51..3b613fb 100644 (file)
@@ -151,7 +151,6 @@ unsigned int * _dl_envp;
   RESULT = hash; \
 }
 extern int _dl_linux_resolve(void);
-extern int _dl_interpreter_exit(int);
 extern char * _dl_strdup(const char *);
 extern char * _dl_getenv(char * symbol, char ** envp);
 extern void _dl_unsetenv(char * symbol, char ** envp);
@@ -997,9 +996,3 @@ char * _dl_strdup(const char * string){
   return retval;
 }
 
-/* In principle we could do the .fini stuff here, but we already
-   registered this stuff with atexit */
-int _dl_interpreter_exit(int exitcode){
-/*  _dl_fdprintf(2, "Hey, look where I am!\n"); */
-  return 0;
-}