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
+13
View File
@@ -0,0 +1,13 @@
#include "SYS.h"
ENTRY(__aeabi_read_tp)
mrc p15, 0, r0, c13, c0, 3
#ifndef _ARM_ARCH_6
cmp r0, #0 /* was it zero? */
RETc(ne) /* return it's not zero */
push {r1} /* syscall zeroes r1 */
SYSTRAP(_lwp_getprivate) /* can't fail */
pop {r1} /* restore r1 */
#endif
RET
_END(__aeabi_read_tp)
+3 -3
View File
@@ -1,4 +1,4 @@
/* $NetBSD: brk.S,v 1.8 2004/08/21 11:30:17 rearnsha Exp $ */
/* $NetBSD: brk.S,v 1.9 2011/05/13 23:14:36 nonaka Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -33,7 +33,7 @@
#include "SYS.h"
.globl _C_LABEL(end)
.globl _C_LABEL(_end)
.globl CURBRK
#ifdef WEAK_ALIAS
@@ -45,7 +45,7 @@ WEAK_ALIAS(brk, _brk)
.globl _C_LABEL(__minbrk)
.type _C_LABEL(__minbrk),#object
_C_LABEL(__minbrk):
.word _C_LABEL(end)
.word _C_LABEL(_end)
/*
* Change the data segment size
+2 -2
View File
@@ -1,4 +1,4 @@
/* $NetBSD: cerror.S,v 1.7 2011/01/14 06:12:17 matt Exp $ */
/* $NetBSD: cerror.S,v 1.8 2012/02/27 12:26:21 joerg Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -34,7 +34,7 @@
#include "SYS.h"
#ifdef PIC
.hidden CERROR
.protected CERROR
#endif
ASENTRY(CERROR)
+3 -3
View File
@@ -1,4 +1,4 @@
/* $NetBSD: sbrk.S,v 1.8 2004/08/21 11:30:17 rearnsha Exp $ */
/* $NetBSD: sbrk.S,v 1.9 2011/05/13 23:14:36 nonaka Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -33,7 +33,7 @@
#include "SYS.h"
.globl _C_LABEL(end)
.globl _C_LABEL(_end)
#ifdef WEAK_ALIAS
WEAK_ALIAS(sbrk, _sbrk)
@@ -44,7 +44,7 @@ WEAK_ALIAS(sbrk, _sbrk)
.globl CURBRK
.type CURBRK,#object
CURBRK:
.word _C_LABEL(end)
.word _C_LABEL(_end)
/*
* Change the data segment size