Libc update to simplify merge.

Bumping libc files for unsupported architectures, to simplify merging.
A bunch of small fixes:
 * in libutil update
 * the macro in endian.h
 * some undefined types due to clear separation from host.
 * Fix a warning for cdbr.c

Some modification which were required for the new build system:
 * inclusion path for const.h in sconst, still hacky
 * Removed default malloc.c which conflicts on some occasions.
This commit is contained in:
2012-11-15 16:07:29 +01:00
parent dba3562d78
commit e415d48872
183 changed files with 3292 additions and 2385 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
/* $NetBSD: brk.S,v 1.3 2006/07/07 06:50:06 ross Exp $ */
/* $NetBSD: brk.S,v 1.4 2011/10/29 16:03:33 christos Exp $ */
#include "SYS.h"
@@ -37,4 +37,5 @@ ENTRY(_brk)
blr # return 0
1:
b .__cerror
b PIC_PLT(_C_LABEL(__cerror))
+4 -1
View File
@@ -1,4 +1,4 @@
/* $NetBSD: cerror.S,v 1.1 2006/07/01 16:37:20 ross Exp $ */
/* $NetBSD: cerror.S,v 1.4 2012/02/27 15:47:11 matt Exp $ */
#include <machine/asm.h>
#include "SYS.h"
@@ -6,6 +6,9 @@
#ifndef _REENTRANT
.globl _C_LABEL(errno)
#endif
#ifdef PIC
.protected _C_LABEL(__cerror)
#endif
ENTRY(__cerror)
#ifdef _REENTRANT
+3 -3
View File
@@ -1,4 +1,4 @@
/* $NetBSD: getcontext.S,v 1.3 2008/04/28 20:22:57 martin Exp $ */
/* $NetBSD: getcontext.S,v 1.4 2011/10/29 16:03:33 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#if defined(SYSLIBC_SCCS) && !defined(lint)
.text
.asciz "$NetBSD: getcontext.S,v 1.3 2008/04/28 20:22:57 martin Exp $"
.asciz "$NetBSD: getcontext.S,v 1.4 2011/10/29 16:03:33 christos Exp $"
#endif /* SYSLIBC_SCCS && !lint */
#ifdef WEAK_ALIAS
@@ -50,4 +50,4 @@ ENTRY(_getcontext)
stw %r3,(48 + 3 * 4)(%r5) # arrange for return value 0
blr
1:
b .__cerror
b PIC_PLT(_C_LABEL(__cerror))