Revert previous changes which are unnecessary now the _DYNAMIC is marked
weak.
This commit is contained in:
parent
e08e654f06
commit
065d43d6c4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.15 2006/05/17 17:01:12 christos Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christos Zoulas
|
||||
@ -67,7 +67,6 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
struct ps_strings *ps_strings;
|
||||
{
|
||||
environ = envp;
|
||||
static int *null;
|
||||
|
||||
if ((__progname = argv[0]) != NULL) { /* NULL ptr if argc = 0 */
|
||||
if ((__progname = _strrchr(__progname, '/')) == NULL)
|
||||
@ -84,7 +83,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
* XXX: Checking for obj != NULL is completely bogus
|
||||
* this is just to avoid a gcc4 bug.
|
||||
*/
|
||||
if (&_DYNAMIC != null) {
|
||||
if (&_DYNAMIC != NULL) {
|
||||
_rtld_setup(cleanup, obj);
|
||||
}
|
||||
#endif
|
||||
@ -104,7 +103,7 @@ ___start(argc, argv, envp, cleanup, obj, ps_strings)
|
||||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||
*/
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.15 2006/05/17 17:01:12 christos Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "common.c"
|
||||
|
Loading…
Reference in New Issue
Block a user