Libraries updates and cleanup

* Updating common/lib
 * Updating lib/csu
 * Updating lib/libc
 * Updating libexec/ld.elf_so
 * Corrected test on __minix in featuretest to actually follow the
   meaning of the comment.
 * Cleaned up _REENTRANT-related defintions.
 * Disabled -D_REENTRANT for libfetch
 * Removing some unneeded __NBSD_LIBC defines and tests

Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
2013-01-14 11:36:26 +01:00
parent f6aac1c3b5
commit f14fb60209
1285 changed files with 44244 additions and 14308 deletions
-4
View File
@@ -6,11 +6,7 @@ ELFSIZE=32
.include "../../Makefile.inc"
.if defined(__MINIX) && ${MACHINE_ARCH} == "arm"
CPPFLAGS+= -DLIBC_SCCS -DPIC -DELFSIZE=${ELFSIZE}
.else
CPPFLAGS+= -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=${ELFSIZE}
.endif
CPPFLAGS+= -I${NETBSDSRCDIR}/libexec/ld.elf_so
CPPFLAGS+= -I${.CURDIR}/../common_elf
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libc/dlfcn
+4 -3
View File
@@ -1,4 +1,4 @@
/* $NetBSD: common.h,v 1.13 2009/12/14 01:04:02 matt Exp $ */
/* $NetBSD: common.h,v 1.16 2012/03/21 10:09:20 matt Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -68,11 +68,12 @@ do { \
static char *_strrchr(char *, int);
char **environ;
char *__progname = "";
char *__progname = __UNCONST("");
struct ps_strings *__ps_strings = 0;
extern void _init(void);
extern void _fini(void);
extern void _libc_init(void);
#ifdef DYNAMIC
void _rtld_setup(void (*)(void), const Obj_Entry *obj);
@@ -83,7 +84,7 @@ void _rtld_setup(void (*)(void), const Obj_Entry *obj);
* if we happen to be compiling without -static but with without any
* shared libs present, things will still work.
*/
extern int _DYNAMIC __weak_reference(_DYNAMIC);
__weakref_visible int rtld_DYNAMIC __weak_reference(_DYNAMIC);
#endif /* DYNAMIC */
#ifdef MCRT0