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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user