diff options
Diffstat (limited to 'lib/csu/i386-elf/crt1.c')
-rw-r--r-- | lib/csu/i386-elf/crt1.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/csu/i386-elf/crt1.c b/lib/csu/i386-elf/crt1.c index d1dd43d0c361b..a30399725f800 100644 --- a/lib/csu/i386-elf/crt1.c +++ b/lib/csu/i386-elf/crt1.c @@ -22,14 +22,13 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: crt1.c,v 1.2 1998/09/07 23:31:59 jdp Exp $ + * $Id: crt1.c,v 1.1.1.1 1998/03/07 20:27:10 jdp Exp $ */ #ifndef __GNUC__ #error "GCC is needed to compile this file" #endif -#include <stddef.h> #include <stdlib.h> typedef void (*fptr)(void); @@ -73,15 +72,10 @@ _start(char *arguments, ...) argc = * (int *) (argv - 1); env = argv + argc + 1; environ = env; - if(argc > 0 && argv[0] != NULL) { - char *s; + if(argc > 0) __progname = argv[0]; - for (s = __progname; *s != '\0'; s++) - if (*s == '/') - __progname = s + 1; - } - if(&_DYNAMIC != NULL) + if(&_DYNAMIC != 0) atexit(rtld_cleanup); #ifdef GCRT |