OSDN Git Service

since just about everyone uses return _dl_elf_main for START() now, make it the default
authorMike Frysinger <vapier@gentoo.org>
Tue, 17 Jan 2006 00:41:23 +0000 (00:41 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 17 Jan 2006 00:41:23 +0000 (00:41 -0000)
ldso/ldso/arm/dl-startup.h
ldso/ldso/cris/dl-startup.h
ldso/ldso/dl-startup.c
ldso/ldso/i386/dl-startup.h
ldso/ldso/m68k/dl-startup.h
ldso/ldso/mips/dl-startup.h
ldso/ldso/powerpc/dl-startup.h
ldso/ldso/sh/dl-startup.h
ldso/ldso/sh64/dl-startup.h
ldso/ldso/x86_64/dl-startup.h

index b7ab57b..8ebc0b2 100644 (file)
@@ -115,9 +115,3 @@ void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
                        _dl_exit(1);
        }
 }
-
-
-/* Transfer control to the user's application, once the dynamic loader is
- * done.  This routine has to exit the current function, then call the
- * _dl_elf_main function.  */
-#define START()   return _dl_elf_main;
index 191657a..3274b41 100644 (file)
@@ -58,8 +58,3 @@ void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
                        break;
        }
 }
-
-/* Transfer control to the user's application, once the dynamic loader is
- * done.  This routine has to exit the current function, then call the
- * _dl_elf_main function.  */
-#define START()     return _dl_elf_main
index ef8e716..cc1bd04 100644 (file)
@@ -307,5 +307,11 @@ static void * __attribute_used__ _dl_start(unsigned long args)
        SEND_STDERR_DEBUG("transfering control to application @ ");
        _dl_elf_main = (int (*)(int, char **, char **)) auxvt[AT_ENTRY].a_un.a_val;
        SEND_ADDRESS_STDERR_DEBUG(_dl_elf_main, 1);
+
+#ifndef START
+       return _dl_elf_main;
+#else
+#warning You need to update your arch ldso code
        START();
+#endif
 }
index cfa4126..d3c7109 100644 (file)
@@ -64,8 +64,3 @@ void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
                        _dl_exit(1);
        }
 }
-
-/* Transfer control to the user's application, once the dynamic loader is
- * done.  This routine has to exit the current function, then call the
- * _dl_elf_main function.  */
-#define START() return _dl_elf_main
index bd748b7..fca4b6c 100644 (file)
@@ -84,8 +84,3 @@ void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
                        _dl_exit (1);
        }
 }
-
-/* Transfer control to the user's application, once the dynamic loader is
- * done.  This routine has to exit the current function, then call the
- * _dl_elf_main function.  */
-#define START() return _dl_elf_main
index df2f25a..bf461d3 100644 (file)
@@ -136,13 +136,3 @@ do {                                                                               \
                SEND_STDERR("Aiieeee!");                                        \
                _dl_exit(1);                                                    \
        }
-
-
-/*
- * Transfer control to the user's application, once the dynamic loader
- * is done.  This routine has to exit the current function, then
- * call the _dl_elf_main function. For MIPS, we do it in assembly
- * because the stack doesn't get properly restored otherwise. Got look
- * at boot1_arch.h
- */
-#define START() return _dl_elf_main
index e6fd814..becfa19 100644 (file)
@@ -80,9 +80,3 @@ asm(
                _dl_exit(100+ELF32_R_TYPE((RELP)->r_info));\
        }                                               \
        }
-/*
- * Transfer control to the user's application, once the dynamic loader
- * is done.  This routine has to exit the current function, then
- * call the _dl_elf_main function.
- */
-#define START()            return _dl_elf_main
index 60808f2..63a6594 100644 (file)
@@ -55,11 +55,3 @@ asm(
        default:                                                \
                _dl_exit(1);                                    \
        }
-
-
-/*
- * Transfer control to the user's application, once the dynamic loader
- * is done.  This routine has to exit the current function, then
- * call the _dl_elf_main function.
- */
-#define START()   return _dl_elf_main;
index d40344d..7701afc 100644 (file)
@@ -115,12 +115,3 @@ asm("" \
        default:                                                        \
                _dl_exit(1);                                            \
        }
-
-/*
- * Transfer control to the user's application, once the dynamic loader
- * is done.  This routine has to exit the current function, then
- * call the _dl_elf_main function.
- */
-
-#define START()   return _dl_elf_main;
-
index 94d7fd4..d58da55 100644 (file)
@@ -63,8 +63,3 @@ void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, ElfW(Addr) *reloc_addr,
                        _dl_exit(1);
        }
 }
-
-/* Transfer control to the user's application, once the dynamic loader is
- * done.  This routine has to exit the current function, then call the
- * _dl_elf_main function.  */
-#define START() return _dl_elf_main