Remove old GCC bug work-around which relied on GCC extension.
This commit is contained in:
parent
6eab4517fa
commit
38541e9dad
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.12 2008/03/15 10:46:24 rearnsha Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.13 2008/06/21 00:52:52 gmcgarry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 Mark Brinicombe
|
||||
@ -79,7 +79,7 @@ Lps_strings:
|
||||
");
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.12 2008/03/15 10:46:24 rearnsha Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.13 2008/06/21 00:52:52 gmcgarry Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
void
|
||||
@ -97,11 +97,7 @@ __start(int argc, char **argv, char **envp)
|
||||
|
||||
#ifdef DYNAMIC
|
||||
/* ld(1) convention: if DYNAMIC = 0 then statically linked */
|
||||
#ifdef stupid_gcc
|
||||
if (&_DYNAMIC)
|
||||
#else
|
||||
if ( ({volatile caddr_t x = (caddr_t)&_DYNAMIC; x; }) )
|
||||
#endif
|
||||
__load_rtld(&_DYNAMIC);
|
||||
#endif /* DYNAMIC */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.6 2002/01/01 01:31:06 thorpej Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.7 2008/06/21 00:52:52 gmcgarry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 Mark Brinicombe
|
||||
@ -68,7 +68,7 @@ __asm(" .text \n"
|
||||
" b " ___STRING(_C_LABEL(___start)) " ");
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.6 2002/01/01 01:31:06 thorpej Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.7 2008/06/21 00:52:52 gmcgarry Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
void
|
||||
@ -89,11 +89,7 @@ ___start(int argc, char **argv, char **envp, struct ps_strings *ps_strings,
|
||||
|
||||
#ifdef DYNAMIC
|
||||
/* ld(1) convention: if DYNAMIC = 0 then statically linked */
|
||||
#ifdef stupid_gcc
|
||||
if (&_DYNAMIC)
|
||||
#else
|
||||
if ( ({volatile caddr_t x = (caddr_t)&_DYNAMIC; x; }) )
|
||||
#endif
|
||||
_rtld_setup(cleanup, obj);
|
||||
#endif /* DYNAMIC */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.34 2008/04/28 20:22:54 martin Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.35 2008/06/21 00:52:52 gmcgarry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -52,7 +52,7 @@ start:
|
||||
");
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.34 2008/04/28 20:22:54 martin Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.35 2008/06/21 00:52:52 gmcgarry Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
void
|
||||
@ -73,11 +73,7 @@ __start(argc, argv, envp)
|
||||
|
||||
#ifdef DYNAMIC
|
||||
/* ld(1) convention: if DYNAMIC = 0 then statically linked */
|
||||
#ifdef stupid_gcc
|
||||
if (&_DYNAMIC)
|
||||
#else
|
||||
if ( ({volatile caddr_t x = (caddr_t)&_DYNAMIC; x; }) )
|
||||
#endif
|
||||
__load_rtld(&_DYNAMIC);
|
||||
#endif /* DYNAMIC */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.23 2008/04/28 20:22:54 martin Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.24 2008/06/21 00:52:52 gmcgarry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -52,7 +52,7 @@ start:
|
||||
");
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.23 2008/04/28 20:22:54 martin Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.24 2008/06/21 00:52:52 gmcgarry Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
void
|
||||
@ -73,11 +73,7 @@ __start(argc, argv, envp)
|
||||
|
||||
#ifdef DYNAMIC
|
||||
/* ld(1) convention: if DYNAMIC = 0 then statically linked */
|
||||
#ifdef stupid_gcc
|
||||
if (&_DYNAMIC)
|
||||
#else
|
||||
if ( ({volatile caddr_t x = (caddr_t)&_DYNAMIC; x; }) )
|
||||
#endif
|
||||
__load_rtld(&_DYNAMIC);
|
||||
#endif /* DYNAMIC */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.2 2005/12/24 22:02:10 perry Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.3 2008/06/21 00:52:52 gmcgarry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Charles M. Hannum. All rights reserved.
|
||||
@ -50,7 +50,7 @@ start:
|
||||
");
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.2 2005/12/24 22:02:10 perry Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.3 2008/06/21 00:52:52 gmcgarry Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
void
|
||||
@ -71,11 +71,7 @@ __start(argc, argv, envp)
|
||||
|
||||
#ifdef DYNAMIC
|
||||
/* ld(1) convention: if DYNAMIC = 0 then statically linked */
|
||||
#ifdef stupid_gcc
|
||||
if (&_DYNAMIC)
|
||||
#else
|
||||
if ( ({volatile caddr_t x = (caddr_t)&_DYNAMIC; x; }) )
|
||||
#endif
|
||||
__load_rtld(&_DYNAMIC);
|
||||
#endif /* DYNAMIC */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.16 2008/04/28 20:22:55 martin Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.17 2008/06/21 00:52:52 gmcgarry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -71,11 +71,7 @@ __start(kfp)
|
||||
|
||||
#ifdef DYNAMIC
|
||||
/* ld(1) convention: if DYNAMIC = 0 then statically linked */
|
||||
#ifdef stupid_gcc
|
||||
if (&_DYNAMIC)
|
||||
#else
|
||||
if ( ({volatile caddr_t x = (caddr_t)&_DYNAMIC; x; }) )
|
||||
#endif
|
||||
__load_rtld(&_DYNAMIC);
|
||||
#endif /* DYNAMIC */
|
||||
|
||||
@ -110,7 +106,7 @@ __asm ("__callmain:"); /* Defined for the benefit of debuggers */
|
||||
#include "common.c"
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: crt0.c,v 1.16 2008/04/28 20:22:55 martin Exp $");
|
||||
__RCSID("$NetBSD: crt0.c,v 1.17 2008/06/21 00:52:52 gmcgarry Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifdef MCRT0
|
||||
|
Loading…
Reference in New Issue
Block a user