glibc/sysdeps/i386
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
..
bits update 2000-07-26 18:21:25 +00:00
elf * sysdeps/i386/bp-asm.h (PCOFF): New constant. 2000-06-29 22:55:31 +00:00
fpu * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
i486 update 2000-07-26 18:21:25 +00:00
i586 * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
i686 update 2000-07-26 18:21:25 +00:00
i786 Also applying directories. 1999-01-24 10:39:22 +00:00
sys * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and 2000-03-17 09:27:02 +00:00
__longjmp.S * sysdeps/i386/bp-asm.h (PCOFF): New constant. 2000-06-29 22:55:31 +00:00
abort-instr.h update from main archive 961220 1996-12-21 04:13:58 +00:00
add_n.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
addmul_1.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
asm-syntax.h * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX, 2000-06-26 16:48:10 +00:00
backtrace.c Update. 1998-06-18 21:50:38 +00:00
bp-asm.h update 2000-07-26 18:21:25 +00:00
bsd-_setjmp.S * sysdeps/i386/bp-asm.h (PCOFF): New constant. 2000-06-29 22:55:31 +00:00
bsd-setjmp.S * sysdeps/i386/bp-asm.h (PCOFF): New constant. 2000-06-29 22:55:31 +00:00
bzero.c 1999-04-30 Roland McGrath <roland@baalperazim.frob.com> 1999-04-30 14:36:46 +00:00
Dist Update. 2000-06-09 06:45:09 +00:00
dl-machine.h * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer. 2000-07-18 00:13:34 +00:00
ffs.c Update. 1998-07-30 12:47:25 +00:00
fpu_control.h Update. 2000-07-05 22:34:10 +00:00
gmp-mparam.h Updated from /src/gmp-2.0 1996-05-07 21:04:52 +00:00
htonl.S Update. 1997-07-24 01:36:01 +00:00
htons.S Update. 1997-07-24 01:36:01 +00:00
i386-mcount.S Update. 1997-05-26 23:01:17 +00:00
Implies Update. 1999-10-20 03:20:31 +00:00
init-first.c Update. 2000-03-31 05:50:02 +00:00
ldbl2mpn.c Update. 1997-06-23 21:55:26 +00:00
lshift.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
machine-gmon.h Update. 1997-09-11 12:09:10 +00:00
Makefile Update. 1999-09-17 16:59:43 +00:00
memchr.S update 2000-07-26 18:21:25 +00:00
memcmp.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
memcopy.h Update. 1998-08-25 11:45:26 +00:00
memset.c Update. 1998-08-25 11:45:26 +00:00
memusage.h Update for memprof->memusage renaming. 2000-06-20 06:36:03 +00:00
mul_1.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
rawmemchr.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
rshift.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
setjmp.S * sysdeps/i386/bp-asm.h (PCOFF): New constant. 2000-06-29 22:55:31 +00:00
stackinfo.h Update. 1999-04-28 23:13:52 +00:00
stpcpy.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
stpncpy.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strchr.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strchrnul.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strcspn.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strlen.c Update. 1997-03-31 22:56:24 +00:00
strpbrk.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strrchr.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strspn.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strtok_r.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
strtok.S update 2000-07-26 18:21:25 +00:00
sub_n.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
submul_1.S * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM (). 2000-06-26 22:15:00 +00:00
sysdep.h Update. 1998-05-29 10:21:16 +00:00
Versions Update. 1999-05-17 17:25:32 +00:00