Module Name:    src
Committed By:   skrll
Date:           Thu Sep  9 10:19:31 UTC 2010

Modified Files:
        src/lib/libc/stdlib: exit.c

Log Message:
Only do the __libc_init hack in libc, i.e. remove it from ld.elf_so.

This fixes hppa ld.elf_so by reducing the number of PLABELs required to
the number before the hack was applied.

Hi Joerg!


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdlib/exit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdlib/exit.c
diff -u src/lib/libc/stdlib/exit.c:1.12 src/lib/libc/stdlib/exit.c:1.13
--- src/lib/libc/stdlib/exit.c:1.12	Mon Jun 28 21:58:02 2010
+++ src/lib/libc/stdlib/exit.c	Thu Sep  9 10:19:31 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: exit.c,v 1.12 2010/06/28 21:58:02 joerg Exp $	*/
+/*	$NetBSD: exit.c,v 1.13 2010/09/09 10:19:31 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)exit.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: exit.c,v 1.12 2010/06/28 21:58:02 joerg Exp $");
+__RCSID("$NetBSD: exit.c,v 1.13 2010/09/09 10:19:31 skrll Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -45,10 +45,12 @@
 #include "atexit.h"
 #endif
 
+#ifdef _LIBC
 extern void __libc_init(void);
 #ifndef __lint
 static void (*force_ref)(void) __used = __libc_init;
 #endif
+#endif
 
 void (*__cleanup) __P((void));
 

Reply via email to