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!
This commit is contained in:
parent
2e7b2c4b52
commit
2a4732aadc
@ -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 @@ __RCSID("$NetBSD: exit.c,v 1.12 2010/06/28 21:58:02 joerg Exp $");
|
||||
#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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user