From de15e46e415fc67cd644c28d187b8d5fbcd6105f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 29 Jan 2002 13:27:05 +0000 Subject: Make it so powerpc can work despite lacking brk(). --- extra/Configs/Config.powerpc | 5 +++++ libc/sysdeps/linux/common/Makefile | 3 +++ 2 files changed, 8 insertions(+) diff --git a/extra/Configs/Config.powerpc b/extra/Configs/Config.powerpc index 91b874f04..432d835c5 100644 --- a/extra/Configs/Config.powerpc +++ b/extra/Configs/Config.powerpc @@ -102,6 +102,11 @@ LOCALE_DIR = "/usr/share/uClibc-locale/" MALLOC = malloc #MALLOC = malloc-930716 +# This architecture currently does not implement the brk syscall +# Having brk allows one to use malloc-930716, which is an order +# of magnitude faster then "malloc" for most allocations.... +EXCLUDE_BRK=true + # If you want to collect common syscall code into one function, set to this to # `true'. Set it to false otherwise. # On i386 this saves about than 2.8k over all syscalls. diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index bd097452a..63eb9f041 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -28,6 +28,9 @@ CSRC= waitpid.c kernel_version.c statfix.c getdnnm.c gethstnm.c \ mkfifo.c setegid.c wait.c errno.c getpagesize.c seteuid.c \ wait3.c setpgrp.c getdtablesize.c create_module.c ptrace.c \ cmsg_nxthdr.c open64.c statfix64.c statfs64.c sbrk.c +ifneq ($(strip $(EXCLUDE_BRK)),true) +CSRC+=sbrk.c +endif COBJS=$(patsubst %.c,%.o, $(CSRC)) MSRC=syscalls.c -- cgit v1.2.3