Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Only do the __libc_init hack in libc, i.e. r...
details: https://anonhg.NetBSD.org/src/rev/9f0e0cb52da4
branches: trunk
changeset: 757646:9f0e0cb52da4
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Sep 09 10:19:31 2010 +0000
description:
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!
diffstat:
lib/libc/stdlib/exit.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r ef8dbd7f93b3 -r 9f0e0cb52da4 lib/libc/stdlib/exit.c
--- a/lib/libc/stdlib/exit.c Thu Sep 09 10:02:14 2010 +0000
+++ b/lib/libc/stdlib/exit.c Thu Sep 09 10:19:31 2010 +0000
@@ -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));
Home |
Main Index |
Thread Index |
Old Index