glibc/sysdeps
Greg McGary 2ed5fd9a2a update
2000-07-26  Greg McGary  <greg@mcgary.org>

	* Makeconfig (+link-bounded, link-libc-bounded,
	link-extra-libs-bounded): New variables.
	(built-program-cmd): Omit $(run-program-prefix) for static BP tests.
	* Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
	* Rules (tests-bp.out): New variable.
	(tests): Conditionally add BP tests.
	(binaries-bounded): Add variable and associated rule.
	* csu/Makefile [build-bounded] (extra-objs, install-lib):
	Move conditional stuff after place where condition is defined.

	* malloc/malloc.c (bp-checks.h): Add #include.
	(mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
	(_bin_at): Add unbounded version of bin_at.
	(IAV, chunk_alloc): Use unbounded _bin_at.
	(mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
	chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
	Wrap BOUNDED_N around return value.
	(chunk_realloc): Adjust oldsize once.

	* sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
	(__ubp_memchr): Add correct decl.
	(_CHECK_STRING): Use __ubp_memchr.
	* sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
	New alias for unbounded-pointer __memchr.
	* sysdeps/i386/memchr.S: Likewise.
	* sysdeps/ia64/memchr.S: Likewise.
	* sysdeps/m68k/memchr.S: Likewise.
	* sysdeps/sparc/sparc32/memchr.S: Likewise.
	* sysdeps/sparc/sparc64/memchr.S: Likewise.
	* sysdeps/vax/memchr.s: Likewise.

	* sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
	(SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
	(strtok): Don't bother to write into SAVE_PTR when returning NULL.
	* sysdeps/i386/i686/strtok.S: Likewise.
	* sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
	RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.

	* sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
	* sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.

	* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
	bounds of copy_result to mount_proc.
2000-07-26 18:21:25 +00:00
..
alpha update 2000-07-26 18:21:25 +00:00
am29k Update. 1998-03-09 09:11:57 +00:00
arm Update for memprof->memusage renaming. 2000-06-20 06:36:03 +00:00
generic update 2000-07-26 18:21:25 +00:00
gnu * sysdeps/mach/hurd/if_index.c: New file. 2000-03-24 20:59:00 +00:00
hppa Update. 1999-10-10 20:36:40 +00:00
i370 update. 1997-07-11 01:19:07 +00:00
i386 update 2000-07-26 18:21:25 +00:00
i860 Update. 1997-06-23 21:55:26 +00:00
i960 Update. 1999-07-14 00:54:57 +00:00
ia64 update 2000-07-26 18:21:25 +00:00
ieee754 Update. 2000-06-29 19:33:05 +00:00
m68k update 2000-07-26 18:21:25 +00:00
m88k Update. 1998-03-09 09:11:57 +00:00
mach * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the program's data space, reallocate only the space that was just deallocated to release its backing space. 2000-07-23 21:18:46 +00:00
mips Update. 2000-07-25 10:34:14 +00:00
mvs update. 1997-07-11 01:19:07 +00:00
posix Update. 2000-07-15 21:56:03 +00:00
powerpc Update. 2000-07-22 02:26:07 +00:00
rs6000 Update. 1998-03-09 09:11:57 +00:00
sh Update for memprof->memusage renaming. 2000-06-20 06:36:03 +00:00
sparc update 2000-07-26 18:21:25 +00:00
standalone Update. 1999-02-07 12:50:11 +00:00
tahoe update from main archive 960909 1996-09-10 02:00:15 +00:00
unix update 2000-07-26 18:21:25 +00:00
vax update 2000-07-26 18:21:25 +00:00
wordsize-32 Update. 1999-05-19 15:35:26 +00:00
wordsize-64 Update. 1999-05-25 14:54:29 +00:00
z8000 Updated from /src/gmp-2.0 1996-05-07 21:04:52 +00:00