diff --git a/CHANGELOG b/CHANGELOG
index 0acd99d..79779c8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -17,6 +17,7 @@ Latest changes:
   * Readd unsquashfs and mksquashfs without lzma support (needed for 3370)
   * stripping of kernel modules added
   * stripping of shell scripts added
+  * ltrace 0.7.0-gitf97b187
   * kconfig 2.6.39
   * menu configuration cache (Config.in.cache)
   * kernel-toolchain:
diff --git a/make/ltrace/Config.in b/make/ltrace/Config.in
index 717e4a9..c4346d5 100644
--- a/make/ltrace/Config.in
+++ b/make/ltrace/Config.in
@@ -1,5 +1,5 @@
 config FREETZ_PACKAGE_LTRACE
-	bool "ltrace 0.5.3 (binary only)"
+	bool "ltrace 0.7.0-gitf97b187 (binary only)"
 	default n
 	select FREETZ_LIB_libelf
 	help
@@ -7,3 +7,10 @@ config FREETZ_PACKAGE_LTRACE
 
 		ltrace is a debugging tool, similar to strace, but it traces library
 		calls instead of system calls.
+
+config FREETZ_PACKAGE_LTRACE_STATIC
+        bool "Create statically linked binary"
+        depends on FREETZ_PACKAGE_LTRACE
+        default n
+        help
+                Causes all libraries ltrace depends on to be linked in statically.
diff --git a/make/ltrace/ltrace.mk b/make/ltrace/ltrace.mk
index 45b0bfa..f4457ea 100644
--- a/make/ltrace/ltrace.mk
+++ b/make/ltrace/ltrace.mk
@@ -1,7 +1,11 @@
-$(call PKG_INIT_BIN, 0.5.3)
-$(PKG)_SOURCE:=ltrace_$($(PKG)_VERSION).orig.tar.gz
-$(PKG)_SOURCE_MD5:=3fa7fe715ab879db08bd06d1d59fd90f
-$(PKG)_SITE:=http://ftp.debian.org/pool/main/l/ltrace
+$(call PKG_INIT_BIN, 0.7.0-gitf97b187)
+$(PKG)_SOURCE:=ltrace-$($(PKG)_VERSION).tar.gz
+# Comment MD5 as it differs for each downloaded tarball from upstream Git repository
+#$(PKG)_SOURCE_MD5:=xxx
+# XXX: Workaround: Generate a tarball from upstream Git repository (use 7 digits)
+$(PKG)_GIT_VERSION:=f97b187
+$(PKG)_SITE:=http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=snapshot;h=$($(PKG)_GIT_VERSION);sf=tgz
+
 $(PKG)_BINARY:=$($(PKG)_DIR)/ltrace
 $(PKG)_CONF:=$($(PKG)_DIR)/etc/ltrace.conf
 $(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/ltrace
@@ -9,18 +13,53 @@ $(PKG)_TARGET_CONF:=$($(PKG)_DEST_DIR)/etc/ltrace.conf
 
 $(PKG)_DEPENDS_ON := libelf
 
-$(PKG)_CONFIGURE_PRE_CMDS += ln -sf ./mipsel sysdeps/linux-gnu/mips ;
-$(PKG)_CONFIGURE_PRE_CMDS += ( cd sysdeps/linux-gnu/mips; chmod +x ../mksyscallent_mips; \
-	../mksyscallent_mips $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/unistd.h > syscallent.h; \
-	../mksignalent $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/signal.h > signalent.h; );
+$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_LTRACE_STATIC
+
+# Copy original header files and regenerate them using mksyscallent_mips and mksignalent scripts
+$(PKG)_CONFIGURE_PRE_CMDS += ( \
+	cd sysdeps/linux-gnu/mips ; \
+	cp syscallent.h syscallent.h.orig ; \
+	cp signalent.h signalent.h.orig ; \
+	../mksyscallent_mips $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/unistd.h > syscallent.h ; \
+	../mksignalent $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/signal.h > signalent.h ; \
+	);
+
+# Use autogen.sh script to generate missing files like configure etc.
+$(PKG)_CONFIGURE_PRE_CMDS += ./autogen.sh ;
+
+# Disable demangling support
+$(PKG)_CONFIGURE_ENV += ac_cv_lib_iberty_cplus_demangle=no
+$(PKG)_CONFIGURE_ENV += ac_cv_lib_stdcpp___cxa_demangle=no
+$(PKG)_CONFIGURE_ENV += ac_cv_lib_supcpp___cxa_demangle=no
 
 $(PKG)_CONFIGURE_ENV += LD="$(TARGET_LD)"
 
-$(PKG_SOURCE_DOWNLOAD)
-$(PKG_UNPACKED)
+TARGET_CC_OPTS := -Wno-error=maybe-uninitialized 
+
+# XXX: Workaround: Download Git tarball (replaces $(PKG_SOURCE_DOWNLOAD))
+$(DL_DIR)/$(LTRACE_SOURCE): | $(DL_DIR)
+	wget -O $(DL_DIR)/$(LTRACE_SOURCE) "$(LTRACE_SITE)"
+
+$(pkg)-download: $(DL_DIR)/$(LTRACE_SOURCE)
+
+# XXX: Workaround: Unpack Git tarball and apply patches (replaces $(PKG_UNPACKED))
+$($(PKG)_DIR)/.unpacked: $(pkg)-download | $(SOURCE_DIR)
+	mkdir -p $(LTRACE_DIR)
+	tar -C $(LTRACE_DIR) $(VERBOSE) --strip-components=1 \
+		-xf $(DL_DIR)/$(LTRACE_SOURCE)
+	for i in $(LTRACE_MAKE_DIR)/patches/*.patch; do \
+		$(PATCH_TOOL) $(LTRACE_DIR) $$i; \
+	done;
+	touch $@
+
+$(pkg)-unpacked: $($(PKG)_DIR)/.unpacked
+
+# XXX: Workaround: Commented due to switch to Git tarball usage
+#$(PKG_SOURCE_DOWNLOAD)
+#$(PKG_UNPACKED)
 $(PKG_CONFIGURED_CONFIGURE)
 
-$($(PKG)_CONF): $($(PKG)_DIR)/.unpacked
+$($(PKG)_CONF): $(pkg)-unpacked
 
 $($(PKG)_TARGET_CONF): $($(PKG)_CONF)
 	mkdir -p $(dir $@)
@@ -28,8 +67,9 @@ $($(PKG)_TARGET_CONF): $($(PKG)_CONF)
 
 $($(PKG)_BINARY): $($(PKG)_DIR)/.configured
 	$(SUBMAKE) -C $(LTRACE_DIR) \
-		ARCH=mips \
-		CFLAGS="$(TARGET_CFLAGS)"
+		ARCH=$(TARGET_ARCH) \
+		CFLAGS="$(TARGET_CFLAGS) $(TARGET_CC_OPTS)" \
+		$(if $(FREETZ_PACKAGE_LTRACE_STATIC),LDFLAGS="-all-static")
 
 $($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
 	$(INSTALL_BINARY_STRIP)
@@ -39,7 +79,7 @@ $(pkg):
 $(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $($(PKG)_TARGET_CONF)
 
 $(pkg)-clean:
-	-$(SUBMAKE) -C $(LTRACE_DIR) clean ARCH=mips
+	-$(SUBMAKE) -C $(LTRACE_DIR) clean
 
 $(pkg)-uninstall:
 	$(RM) $(LTRACE_TARGET_BINARY)
diff --git a/make/ltrace/patches/100-add-sysdep.patch b/make/ltrace/patches/100-add-sysdep.patch
deleted file mode 100644
index 3f64325..0000000
--- a/make/ltrace/patches/100-add-sysdep.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: ltrace-0.5.3/Makefile.in
-===================================================================
---- Makefile.in	2009-10-23 22:06:08.130304691 -0700
-+++ Makefile.in	2009-10-23 22:06:53.160369614 -0700
-@@ -39,6 +39,8 @@ ltrace:		main.o libltrace.a
- libltrace.a: 	sysdeps/sysdep.o $(OBJ)
- 		$(AR) rcv $@ $^
- 
-+$(OBJ):		sysdeps/sysdep.o
-+
- sysdeps/sysdep.o: dummy
- 		$(MAKE) -C sysdeps/$(OS)
- 
diff --git a/make/ltrace/patches/110-ltrace-compile.patch b/make/ltrace/patches/110-ltrace-compile.patch
deleted file mode 100644
index 14a4886..0000000
--- a/make/ltrace/patches/110-ltrace-compile.patch
+++ /dev/null
@@ -1,85 +0,0 @@
---- common.h	2009-10-23 23:13:45.700282578 -0700
-+++ common.h	2009-10-23 23:14:13.550371553 -0700
-@@ -1,3 +1,5 @@
-+#ifndef COMMON_H
-+#define COMMON_H
- #include <sys/types.h>
- #include <sys/time.h>
- #include <stdio.h>
-@@ -251,3 +253,5 @@ extern void * sym2addr(Process *, struct
- #if 0				/* not yet */
- extern int umoven(Process * proc, void * addr, int len, void * laddr);
- #endif
-+#endif
-+
---- configure	2009-10-23 23:13:45.630316494 -0700
-+++ configure	2009-10-23 23:13:59.672869527 -0700
-@@ -30,7 +30,7 @@ int main () {
-   return cplus_demangle();
- }
- EOF
--if gcc conftest.c -liberty 2>/dev/null
-+if $CC conftest.c -liberty 2>/dev/null
- then
-   HAVE_LIBIBERTY=1
-   echo "yes"
-@@ -48,7 +48,7 @@ int main () {
-   return __cxa_demangle();
- }
- EOF
--if gcc conftest.c -lsupc++ 2>/dev/null
-+if $CC conftest.c -lsupc++ 2>/dev/null
- then
-   HAVE_LIBSUPC__=1
-   echo "yes"
-@@ -67,7 +67,7 @@ int main () {
-   return 0;
- }
- EOF
--if gcc conftest.c 2>/dev/null
-+if $CC conftest.c 2>/dev/null
- then
-   HAVE_ELF_C_READ_MMAP=1
-   echo "yes"
-@@ -77,15 +77,12 @@ else
- fi
- rm -f conftest.c a.out
- 
--CC=gcc
--CPPFLAGS=' -I /usr/include/libelf'
- CFLAGS='-g -O2'
- LIBS='-lelf -lsupc++ -liberty '
--INSTALL='/usr/bin/install -c'
-+INSTALL='$/usr/bin/install -c'
- iquote='-iquote '
- iquoteend=''
- 
--prefix=/usr/local
- sysconfdir='${prefix}/etc'
- bindir='${prefix}/bin'
- mandir='${prefix}/share/man'
---- debug.h	2009-10-23 23:13:45.670276809 -0700
-+++ debug.h	2009-10-23 23:14:26.440319785 -0700
-@@ -1,3 +1,5 @@
-+#ifndef DEBUG_H
-+#define DEBUG_H
- #include <features.h>
- 
- /* debug levels:
-@@ -14,4 +16,4 @@ void debug_(int level, const char *file,
- int xinfdump(long, void *, int);
- 
- # define debug(level, expr...) debug_(level, __FILE__, __LINE__, expr)
--
-+#endif
---- sysdeps/linux-gnu/events.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/events.c	2010-08-01 22:40:10.879693289 +0200
-@@ -7,7 +7,7 @@
- #include <errno.h>
- #include <signal.h>
- #include <string.h>
--#include <sys/ptrace.h>
-+#include <linux/ptrace.h>
- 
- #include "common.h"
- 
diff --git a/make/ltrace/patches/130-ltrace-mips.patch b/make/ltrace/patches/130-ltrace-mips.patch
deleted file mode 100644
index a61fa47..0000000
--- a/make/ltrace/patches/130-ltrace-mips.patch
+++ /dev/null
@@ -1,988 +0,0 @@
---- sysdeps/linux-gnu/Makefile.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/Makefile	2010-08-01 21:29:24.522173665 +0200
-@@ -17,8 +17,9 @@
- sysdep.h:	$(ARCH)/arch.h
- 		cat $(ARCH)/arch.h > sysdep.h
- 
--signalent.h:
--		cp $(ARCH)/signalent.h signalent.h
-+signalent.h:	$(ARCH)/signalent.h
-+		cp $< $@
-+
- signalent1.h:
- 		if [ -f $(ARCH)/signalent1.h ]; then \
- 			cp $(ARCH)/signalent1.h signalent1.h; \
-@@ -26,8 +27,8 @@
- 			> signalent1.h; \
- 		fi
- 
--syscallent.h:
--		cp $(ARCH)/syscallent.h syscallent.h
-+syscallent.h:	$(ARCH)/syscallent.h
-+		cp $< $@
- 
- syscallent1.h:
- 		if [ -f $(ARCH)/syscallent1.h ]; then \
---- common.h.orig	2010-08-01 21:29:24.472170173 +0200
-+++ common.h	2010-08-01 21:29:24.522173665 +0200
-@@ -146,6 +146,9 @@
- 	} c_un;
- 	int is_syscall;
- 	void * return_addr;
-+#ifdef __mips__
-+	void *arch_ptr;
-+#endif
- 	struct timeval time_spent;
- };
- 
---- sysdeps/linux-gnu/mipsel/arch.h.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/arch.h	2010-08-01 21:29:24.522173665 +0200
-@@ -1,4 +1,8 @@
-+#ifdef __MIPSEL__
- #define BREAKPOINT_VALUE { 0x0d, 0x00, 0x00, 0x00 }
-+#else
-+#define BREAKPOINT_VALUE { 0x00, 0x00, 0x00, 0x0d }
-+#endif
- #define BREAKPOINT_LENGTH 4
- #define DECR_PC_AFTER_BREAK 0
- 
---- sysdeps/linux-gnu/mipsel/plt.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/plt.c	2010-08-01 21:29:24.522173665 +0200
-@@ -1,4 +1,4 @@
--#include <debug.h>
-+#include "debug.h"
- #include <gelf.h>
- #include <sys/ptrace.h>
- #include "common.h"
---- sysdeps/linux-gnu/mipsel/regs.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/regs.c	2010-08-01 21:29:24.522173665 +0200
-@@ -4,7 +4,6 @@
- #include <sys/types.h>
- #include <sys/ptrace.h>
- #include <asm/ptrace.h>
--#include <linux/user.h>
- 
- #include "common.h"
- #include "mipsel.h"
---- sysdeps/linux-gnu/mipsel/trace.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/trace.c	2010-08-01 21:29:24.532173679 +0200
-@@ -119,31 +119,55 @@
- long
- gimme_arg(enum tof type, Process *proc, int arg_num, arg_type_info *info) {
- 	long ret;
-+	long addr;
- 	debug(2,"type %d arg %d",type,arg_num);
--	if (type == LT_TOF_FUNCTION || type == LT_TOF_SYSCALL){
-+	if (arg_num == -1) {
-+		if(type == LT_TOF_FUNCTIONR) {
-+			return  ptrace(PTRACE_PEEKUSER,proc->pid,off_v0,0);
-+		}
-+		if (type == LT_TOF_SYSCALLR) {
-+			unsigned a3=ptrace(PTRACE_PEEKUSER, proc->pid,off_a3,0);
-+			unsigned v0=ptrace(PTRACE_PEEKUSER, proc->pid,off_v0,0);
-+			if(!a3){
-+				return v0;
-+			}
-+			return -1;
-+		}
-+	}
-+	if (type == LT_TOF_FUNCTION || type == LT_TOF_SYSCALL) {
-+		/* o32: float args are in f12 and f14 */
-+		if ((info->type == ARGTYPE_FLOAT) && (arg_num < 2)) {
-+			ret=ptrace(PTRACE_PEEKUSER,proc->pid,off_fpr0+12+arg_num*2,0);
-+			debug(2,"ret = %#lx",ret);
-+			return ret;
-+		}
- 		if(arg_num <4){
- 			ret=ptrace(PTRACE_PEEKUSER,proc->pid,off_a0+arg_num,0);
- 			debug(2,"ret = %#lx",ret);
- 			return ret;
- 		} else {
--			// If we need this, I think we can look at [sp+16] for arg_num==4.
--			CP;
--			return 0;
-+			/* not sure it's going to work for something else than syscall */
-+			addr=ptrace(PTRACE_PEEKUSER,proc->pid,off_sp,0);
-+			if (addr == -1) {
-+				debug(2,"ret = %#lx",addr);
-+				return addr;
-+			}
-+			ret = addr + 4*arg_num;
-+			ret=ptrace(PTRACE_PEEKTEXT,proc->pid,addr,0);
-+			debug(2,"ret = %#lx",ret);
-+			return ret;
- 		}
- 	}
--	if(arg_num>=0){
--		fprintf(stderr,"args on return?");
--	}
--	if(type == LT_TOF_FUNCTIONR) {
--		return  ptrace(PTRACE_PEEKUSER,proc->pid,off_v0,0);
--	}
--	if (type == LT_TOF_SYSCALLR) {
--		unsigned a3=ptrace(PTRACE_PEEKUSER, proc->pid,off_a3,0);
--		unsigned v0=ptrace(PTRACE_PEEKUSER, proc->pid,off_v0,0);
--		if(!a3){
--			return v0;
-+	if (type == LT_TOF_FUNCTIONR || type == LT_TOF_SYSCALLR){
-+		addr=ptrace(PTRACE_PEEKUSER,proc->pid,off_sp,0);
-+		if (addr == -1) {
-+			debug(2,"ret = %#lx",addr);
-+			return addr;
- 		}
--		return -1;
-+		ret = addr + 4*arg_num;
-+		ret=ptrace(PTRACE_PEEKTEXT,proc->pid,addr,0);
-+		debug(2,"ret = %#lx",ret);
-+		return ret;
- 	}
- 	fprintf(stderr, "gimme_arg called with wrong arguments\n");
- 	return 0;
---- handle_event.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ handle_event.c	2010-08-01 21:29:24.532173679 +0200
-@@ -569,17 +569,19 @@
- 				}
- 			}
- #elif defined(__mips__)
--			void *addr;
--			void *old_addr;
-+			void *addr = NULL;
- 			struct library_symbol *sym= event->proc->callstack[i].c_un.libfunc;
-+			struct library_symbol *new_sym;
- 			assert(sym);
--			old_addr = dict_find_entry(event->proc->breakpoints, sym2addr(event->proc, sym))->addr;
- 			addr=sym2addr(event->proc,sym);
--			assert(old_addr !=0 && addr !=0);
--			if(addr != old_addr){
--				struct library_symbol *new_sym;
--				new_sym=malloc(sizeof(*new_sym));
--				memcpy(new_sym,sym,sizeof(*new_sym));
-+			sbp = dict_find_entry(event->proc->breakpoints, addr);
-+			if (sbp) {
-+				if (addr != sbp->addr) {
-+					insert_breakpoint(event->proc, addr, sym);
-+				}
-+			} else {
-+				new_sym=malloc(sizeof(*new_sym) + strlen(sym->name) + 1);
-+				memcpy(new_sym,sym,sizeof(*new_sym) + strlen(sym->name) + 1);
- 				new_sym->next=event->proc->list_of_symbols;
- 				event->proc->list_of_symbols=new_sym;
- 				insert_breakpoint(event->proc, addr, new_sym);
-@@ -639,7 +641,8 @@
- 	debug(DEBUG_FUNCTION, "callstack_push_syscall(pid=%d, sysnum=%d)", proc->pid, sysnum);
- 	/* FIXME: not good -- should use dynamic allocation. 19990703 mortene. */
- 	if (proc->callstack_depth == MAX_CALLDEPTH - 1) {
--		fprintf(stderr, "Error: call nesting too deep!\n");
-+		fprintf(stderr, "%s: Error: call nesting too deep!\n", __func__);
-+		abort();
- 		return;
- 	}
- 
-@@ -657,15 +660,17 @@
- 
- static void
- callstack_push_symfunc(Process *proc, struct library_symbol *sym) {
--	struct callstack_element *elem;
-+	struct callstack_element *elem, *prev;
- 
- 	debug(DEBUG_FUNCTION, "callstack_push_symfunc(pid=%d, symbol=%s)", proc->pid, sym->name);
- 	/* FIXME: not good -- should use dynamic allocation. 19990703 mortene. */
- 	if (proc->callstack_depth == MAX_CALLDEPTH - 1) {
--		fprintf(stderr, "Error: call nesting too deep!\n");
-+		fprintf(stderr, "%s: Error: call nesting too deep!\n", __func__);
-+		abort();
- 		return;
- 	}
- 
-+	prev = &proc->callstack[proc->callstack_depth-1];
- 	elem = &proc->callstack[proc->callstack_depth];
- 	elem->is_syscall = 0;
- 	elem->c_un.libfunc = sym;
-@@ -675,7 +680,9 @@
- 		insert_breakpoint(proc, elem->return_addr, 0);
- 	}
- 
--	proc->callstack_depth++;
-+	/* handle functions like atexit() on mips which have no return */
-+	if (elem->return_addr != prev->return_addr)
-+		proc->callstack_depth++;
- 	if (opt_T || options.summary) {
- 		struct timezone tz;
- 		gettimeofday(&elem->time_spent, &tz);
---- breakpoints.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ breakpoints.c	2010-08-01 21:29:24.532173679 +0200
-@@ -123,8 +123,8 @@
- 					continue;
- 				}
- 				debug(2,"inserting bp %p %s",addr,sym->name);
--				new_sym=malloc(sizeof(*new_sym));
--				memcpy(new_sym,sym,sizeof(*new_sym));
-+				new_sym=malloc(sizeof(*new_sym) + strlen(sym->name) + 1);
-+				memcpy(new_sym,sym,sizeof(*new_sym) + strlen(sym->name) + 1);
- 				new_sym->next=proc->list_of_symbols;
- 				proc->list_of_symbols=new_sym;
- 				insert_breakpoint(proc, addr, new_sym);
---- sysdeps/linux-gnu/trace.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/trace.c	2010-08-01 21:29:24.532173679 +0200
-@@ -55,6 +55,14 @@
- 		return -errno;
- 
- 	*result = pointed_to;
-+	if (info) {
-+		switch(info->type) {
-+			case ARGTYPE_INT:
-+				*result &= 0x00000000ffffffffUL;
-+			default:
-+				break;
-+		};
-+	}
- 	return 0;
- }
- #endif
-@@ -119,7 +127,7 @@
- 
- 	proc = pid2proc(pid);
- 	if (proc && proc->breakpoint_being_enabled) {
--#if defined __sparc__  || defined __ia64___
-+#if defined __sparc__  || defined __ia64___ || defined __mips__
- 		ptrace(PTRACE_SYSCALL, pid, 0, signum);
- #else
- 		ptrace(PTRACE_SINGLESTEP, pid, 0, signum);
-@@ -154,7 +162,7 @@
- 	} else {
- 		debug(DEBUG_PROCESS, "continue_after_breakpoint: pid=%d, addr=%p", proc->pid, sbp->addr);
- 		proc->breakpoint_being_enabled = sbp;
--#if defined __sparc__  || defined __ia64___
-+#if defined __sparc__  || defined __ia64___ || defined __mips__
- 		/* we don't want to singlestep here */
- 		continue_process(proc->pid);
- #else
---- sysdeps/linux-gnu/mksyscallent_mips.orig	2010-08-01 21:29:24.532173679 +0200
-+++ sysdeps/linux-gnu/mksyscallent_mips	2010-08-01 21:29:24.532173679 +0200
-@@ -0,0 +1,43 @@
-+#!/usr/bin/awk -f
-+
-+# hack expression to generate arch/syscallent.h from <asm/unistd.h>
-+# It reads from stdin and writes to stdout
-+# It should work OK on i386,m68k,arm,ia64
-+# It does NOT work in mips, s390
-+# It is untested in other architectures
-+
-+BEGIN {
-+	max=0;
-+	FS="[ \t\n()+]+";
-+}
-+
-+{
-+	#debug
-+	#printf("/%s/%s/%s/%s/\n", $1, $2, $3, $4);
-+	if ($2 ~ /__NR_Linux/ && $3 ~ /4000/) {
-+		syscall=1;
-+	}
-+	if ($2 ~ /__NR_Linux_syscalls/) {
-+		syscall=0;
-+	}
-+	if (syscall && ($1 ~ /^#define$/) && ($2 ~ /^__NR_/)) {
-+			SYSCALL[$4]=substr($2,6);
-+			if ($4 > max) {
-+				max=$4;
-+			}
-+	}
-+}
-+
-+END {
-+	for(i=0; i<=max; i++) {
-+		if (!SYSCALL[i]) {
-+			SYSCALL[i] = i;
-+		}
-+		pad = 32 - length(SYSCALL[i]);
-+		if (pad<1) {
-+			pad=1;
-+		}
-+		printf("\t\"%s\",%*s/* %d */\n", SYSCALL[i], pad, "", i);
-+	}
-+}
-+
---- elf.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ elf.c	2010-08-01 21:29:24.532173679 +0200
-@@ -482,14 +482,16 @@
- 					proc->filename);
- 		}
- 		name=lte->dynstr+sym.st_name;
--		if(ELF64_ST_TYPE(sym.st_info) != STT_FUNC){
--			debug(2,"sym %s not a function",name);
--			continue;
-+		if (in_load_libraries(name, lte)) {
-+			if(ELF64_ST_TYPE(sym.st_info) != STT_FUNC){
-+				debug(2,"sym %s not a function",name);
-+				continue;
-+			}
-+			add_library_symbol(addr, name, &library_symbols, 0,
-+					ELF64_ST_BIND(sym.st_info) != 0);
-+			if (!lib_tail)
-+				lib_tail = &(library_symbols->next);
- 		}
--		add_library_symbol(addr, name, &library_symbols, 0,
--				ELF64_ST_BIND(sym.st_info) != 0);
--		if (!lib_tail)
--			lib_tail = &(library_symbols->next);
- 	}
- #else
- 	for (i = 0; i < lte->relplt_count; ++i) {
---- sysdeps/linux-gnu/mipsel/signalent.h.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/signalent.h	2010-08-01 21:29:24.532173679 +0200
-@@ -1,32 +1,32 @@
--"SIG_0",			/* 0 */
--    "SIGHUP",	//	    1	/* Hangup (POSIX).  */
--    "SIGINT", //		 2	/* Interrupt (ANSI).  */
--    "SIGQUIT", //		 3	/* Quit (POSIX).  */
--    "SIGILL", //		 4	/* Illegal instruction (ANSI).  */
--    "SIGTRAP", //		 5	/* Trace trap (POSIX).  */
--    "SIGIOT", //		 6	/* IOT trap (4.2 BSD).  */
--    "SIGEMT", //		 7
--    "SIGFPE", //		 8	/* Floating-point exception (ANSI).  */
--    "SIGKILL", //		 9	/* Kill, unblockable (POSIX).  */
--    "SIGBUS", //		10	/* BUS error (4.2 BSD).  */
--    "SIGSEGV", //		11	/* Segmentation violation (ANSI).  */
--    "SIGSYS", //		12
--    "SIGPIPE", //		13	/* Broken pipe (POSIX).  */
--    "SIGALRM", //		14	/* Alarm clock (POSIX).  */
--    "SIGTERM", //		15	/* Termination (ANSI).  */
--    "SIGUSR1", //		16	/* User-defined signal 1 (POSIX).  */
--    "SIGUSR2", //		17	/* User-defined signal 2 (POSIX).  */
--    "SIGCHLD", //		18	/* Child status has changed (POSIX).  */
--    "SIGPWR", //		19	/* Power failure restart (System V).  */
--    "SIGWINCH", //	20	/* Window size change (4.3 BSD, Sun).  */
--    "SIGURG", //		21	/* Urgent condition on socket (4.2 BSD).  */
--    "SIGIO", //		22	/* I/O now possible (4.2 BSD).  */
--    "SIGSTOP", //		23	/* Stop, unblockable (POSIX).  */
--    "SIGTSTP", //		24	/* Keyboard stop (POSIX).  */
--    "SIGCONT", //		25	/* Continue (POSIX).  */
--    "SIGTTIN", //		26	/* Background read from tty (POSIX).  */
--    "SIGTTOU", //		27	/* Background write to tty (POSIX).  */
--    "SIGVTALRM", //	28	/* Virtual alarm clock (4.2 BSD).  */
--    "SIGPROF", //		29	/* Profiling alarm clock (4.2 BSD).  */
--    "SIGXCPU", //		30	/* CPU limit exceeded (4.2 BSD).  */
--    "SIGXFSZ", //		31	/* File size limit exceeded (4.2 BSD).  */
-+	"SIG_0",           /* 0 */
-+	"SIGHUP",          /* 1 */
-+	"SIGINT",          /* 2 */
-+	"SIGQUIT",         /* 3 */
-+	"SIGILL",          /* 4 */
-+	"SIGTRAP",         /* 5 */
-+	"SIGIOT",          /* 6 */
-+	"SIGEMT",          /* 7 */
-+	"SIGFPE",          /* 8 */
-+	"SIGKILL",         /* 9 */
-+	"SIGBUS",          /* 10 */
-+	"SIGSEGV",         /* 11 */
-+	"SIGSYS",          /* 12 */
-+	"SIGPIPE",         /* 13 */
-+	"SIGALRM",         /* 14 */
-+	"SIGTERM",         /* 15 */
-+	"SIGUSR1",         /* 16 */
-+	"SIGUSR2",         /* 17 */
-+	"SIGCHLD",         /* 18 */
-+	"SIGPWR",          /* 19 */
-+	"SIGWINCH",        /* 20 */
-+	"SIGURG",          /* 21 */
-+	"SIGIO",           /* 22 */
-+	"SIGSTOP",         /* 23 */
-+	"SIGTSTP",         /* 24 */
-+	"SIGCONT",         /* 25 */
-+	"SIGTTIN",         /* 26 */
-+	"SIGTTOU",         /* 27 */
-+	"SIGVTALRM",       /* 28 */
-+	"SIGPROF",         /* 29 */
-+	"SIGXCPU",         /* 30 */
-+	"SIGXFSZ",         /* 31 */
---- sysdeps/linux-gnu/mipsel/syscallent.h.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/syscallent.h	2010-08-01 21:29:24.532173679 +0200
-@@ -1,241 +1,330 @@
--    "0",			/*Linux +   0*/
--    "exit",			/*Linux +   1*/
--    "fork",			/*Linux +   2*/
--    "read",			/*Linux +   3*/
--    "write",			/*Linux +   4*/
--    "open",			/*Linux +   5*/
--    "close",			/*Linux +   6*/
--    "waitpid",			/*Linux +   7*/
--    "creat",			/*Linux +   8*/
--    "link",			/*Linux +   9*/
--    "unlink",			/*Linux +  10*/
--    "execve",			/*Linux +  11*/
--    "chdir",			/*Linux +  12*/
--    "time",			/*Linux +  13*/
--    "mknod",			/*Linux +  14*/
--    "chmod",			/*Linux +  15*/
--    "lchown",			/*Linux +  16*/
--    "break",			/*Linux +  17*/
--    "unused18",			/*Linux +  18*/
--    "lseek",			/*Linux +  19*/
--    "getpid",			/*Linux +  20*/
--    "mount",			/*Linux +  21*/
--    "umount",			/*Linux +  22*/
--    "setuid",			/*Linux +  23*/
--    "getuid",			/*Linux +  24*/
--    "stime",			/*Linux +  25*/
--    "ptrace",			/*Linux +  26*/
--    "alarm",			/*Linux +  27*/
--    "unused28",			/*Linux +  28*/
--    "pause",			/*Linux +  29*/
--    "utime",			/*Linux +  30*/
--    "stty",			/*Linux +  31*/
--    "gtty",			/*Linux +  32*/
--    "access",			/*Linux +  33*/
--    "nice",			/*Linux +  34*/
--    "ftime",			/*Linux +  35*/
--    "sync",			/*Linux +  36*/
--    "kill",			/*Linux +  37*/
--    "rename",			/*Linux +  38*/
--    "mkdir",			/*Linux +  39*/
--    "rmdir",			/*Linux +  40*/
--    "dup",			/*Linux +  41*/
--    "pipe",			/*Linux +  42*/
--    "times",			/*Linux +  43*/
--    "prof",			/*Linux +  44*/
--    "brk",			/*Linux +  45*/
--    "setgid",			/*Linux +  46*/
--    "getgid",			/*Linux +  47*/
--    "signal",			/*Linux +  48*/
--    "geteuid",			/*Linux +  49*/
--    "getegid",			/*Linux +  50*/
--    "acct",			/*Linux +  51*/
--    "umount2",			/*Linux +  52*/
--    "lock",			/*Linux +  53*/
--    "ioctl",			/*Linux +  54*/
--    "fcntl",			/*Linux +  55*/
--    "mpx",			/*Linux +  56*/
--    "setpgid",			/*Linux +  57*/
--    "ulimit",			/*Linux +  58*/
--    "unused59",			/*Linux +  59*/
--    "umask",			/*Linux +  60*/
--    "chroot",			/*Linux +  61*/
--    "ustat",			/*Linux +  62*/
--    "dup2",			/*Linux +  63*/
--    "getppid",			/*Linux +  64*/
--    "getpgrp",			/*Linux +  65*/
--    "setsid",			/*Linux +  66*/
--    "sigaction",			/*Linux +  67*/
--    "sgetmask",			/*Linux +  68*/
--    "ssetmask",			/*Linux +  69*/
--    "setreuid",			/*Linux +  70*/
--    "setregid",			/*Linux +  71*/
--    "sigsuspend",			/*Linux +  72*/
--    "sigpending",			/*Linux +  73*/
--    "sethostname",		/*Linux +  74*/
--    "setrlimit",			/*Linux +  75*/
--    "getrlimit",			/*Linux +  76*/
--    "getrusage",			/*Linux +  77*/
--    "gettimeofday",		/*Linux +  78*/
--    "settimeofday",		/*Linux +  79*/
--    "getgroups",			/*Linux +  80*/
--    "setgroups",			/*Linux +  81*/
--    "reserved82",			/*Linux +  82*/
--    "symlink",			/*Linux +  83*/
--    "unused84",			/*Linux +  84*/
--    "readlink",			/*Linux +  85*/
--    "uselib",			/*Linux +  86*/
--    "swapon",			/*Linux +  87*/
--    "reboot",			/*Linux +  88*/
--    "readdir",			/*Linux +  89*/
--    "mmap",			/*Linux +  90*/
--    "munmap",			/*Linux +  91*/
--    "truncate",			/*Linux +  92*/
--    "ftruncate",			/*Linux +  93*/
--    "fchmod",			/*Linux +  94*/
--    "fchown",			/*Linux +  95*/
--    "getpriority",		/*Linux +  96*/
--    "setpriority",		/*Linux +  97*/
--    "profil",			/*Linux +  98*/
--    "statfs",			/*Linux +  99*/
--    "fstatfs",			/*Linux + 100*/
--    "ioperm",			/*Linux + 101*/
--    "socketcall",			/*Linux + 102*/
--    "syslog",			/*Linux + 103*/
--    "setitimer",			/*Linux + 104*/
--    "getitimer",			/*Linux + 105*/
--    "stat",			/*Linux + 106*/
--    "lstat",			/*Linux + 107*/
--    "fstat",			/*Linux + 108*/
--    "unused109",			/*Linux + 109*/
--    "iopl",			/*Linux + 110*/
--    "vhangup",			/*Linux + 111*/
--    "idle",			/*Linux + 112*/
--    "vm86",			/*Linux + 113*/
--    "wait4",			/*Linux + 114*/
--    "swapoff",			/*Linux + 115*/
--    "sysinfo",			/*Linux + 116*/
--    "ipc",			/*Linux + 117*/
--    "fsync",			/*Linux + 118*/
--    "sigreturn",			/*Linux + 119*/
--    "clone",			/*Linux + 120*/
--    "setdomainname",		/*Linux + 121*/
--    "uname",			/*Linux + 122*/
--    "modify_ldt",			/*Linux + 123*/
--    "adjtimex",			/*Linux + 124*/
--    "mprotect",			/*Linux + 125*/
--    "sigprocmask",		/*Linux + 126*/
--    "create_module",		/*Linux + 127*/
--    "init_module",		/*Linux + 128*/
--    "delete_module",		/*Linux + 129*/
--    "get_kernel_syms",		/*Linux + 130*/
--    "quotactl",			/*Linux + 131*/
--    "getpgid",			/*Linux + 132*/
--    "fchdir",			/*Linux + 133*/
--    "bdflush",			/*Linux + 134*/
--    "sysfs",			/*Linux + 135*/
--    "personality",		/*Linux + 136*/
--    "afs_syscall",		/*Linux + 137*/ /* Syscall for Andrew File System */
--    "setfsuid",			/*Linux + 138*/
--    "setfsgid",			/*Linux + 139*/
--    "_llseek",			/*Linux + 140*/
--    "getdents",			/*Linux + 141*/
--    "_newselect",			/*Linux + 142*/
--    "flock",			/*Linux + 143*/
--    "msync",			/*Linux + 144*/
--    "readv",			/*Linux + 145*/
--    "writev",			/*Linux + 146*/
--    "cacheflush",			/*Linux + 147*/
--    "cachectl",			/*Linux + 148*/
--    "sysmips",			/*Linux + 149*/
--    "unused150",			/*Linux + 150*/
--    "getsid",			/*Linux + 151*/
--    "fdatasync",			/*Linux + 152*/
--    "_sysctl",			/*Linux + 153*/
--    "mlock",			/*Linux + 154*/
--    "munlock",			/*Linux + 155*/
--    "mlockall",			/*Linux + 156*/
--    "munlockall",			/*Linux + 157*/
--    "sched_setparam",		/*Linux + 158*/
--    "sched_getparam",		/*Linux + 159*/
--    "sched_setscheduler",		/*Linux + 160*/
--    "sched_getscheduler",		/*Linux + 161*/
--    "sched_yield",		/*Linux + 162*/
--    "sched_get_priority_max",	/*Linux + 163*/
--    "sched_get_priority_min",	/*Linux + 164*/
--    "sched_rr_get_interval",	/*Linux + 165*/
--    "nanosleep",			/*Linux + 166*/
--    "mremap",			/*Linux + 167*/
--    "accept",			/*Linux + 168*/
--    "bind",			/*Linux + 169*/
--    "connect",			/*Linux + 170*/
--    "getpeername",		/*Linux + 171*/
--    "getsockname",		/*Linux + 172*/
--    "getsockopt",			/*Linux + 173*/
--    "listen",			/*Linux + 174*/
--    "recv",			/*Linux + 175*/
--    "recvfrom",			/*Linux + 176*/
--    "recvmsg",			/*Linux + 177*/
--    "send",			/*Linux + 178*/
--    "sendmsg",			/*Linux + 179*/
--    "sendto",			/*Linux + 180*/
--    "setsockopt",			/*Linux + 181*/
--    "shutdown",			/*Linux + 182*/
--    "socket",			/*Linux + 183*/
--    "socketpair",			/*Linux + 184*/
--    "setresuid",			/*Linux + 185*/
--    "getresuid",			/*Linux + 186*/
--    "query_module",		/*Linux + 187*/
--    "poll",			/*Linux + 188*/
--    "nfsservctl",			/*Linux + 189*/
--    "setresgid",			/*Linux + 190*/
--    "getresgid",			/*Linux + 191*/
--    "prctl",			/*Linux + 192*/
--    "rt_sigreturn",		/*Linux + 193*/
--    "rt_sigaction",		/*Linux + 194*/
--    "rt_sigprocmask",		/*Linux + 195*/
--    "rt_sigpending",		/*Linux + 196*/
--    "rt_sigtimedwait",		/*Linux + 197*/
--    "rt_sigqueueinfo",		/*Linux + 198*/
--    "rt_sigsuspend",		/*Linux + 199*/
--    "pread",			/*Linux + 200*/
--    "pwrite",			/*Linux + 201*/
--    "chown",			/*Linux + 202*/
--    "getcwd",			/*Linux + 203*/
--    "capget",			/*Linux + 204*/
--    "capset",			/*Linux + 205*/
--    "sigaltstack",		/*Linux + 206*/
--    "sendfile",			/*Linux + 207*/
--    "getpmsg",			/*Linux + 208*/
--    "putpmsg",			/*Linux + 209*/
--    "mmap2",			/*Linux + 210*/
--    "truncate64",			/*Linux + 211*/
--    "ftruncate64",		/*Linux + 212*/
--    "stat64",			/*Linux + 213*/
--    "lstat64",			/*Linux + 214*/
--    "fstat64",			/*Linux + 215*/
--    "pivot_root",			/*Linux + 216*/
--    "mincore",			/*Linux + 217*/
--    "madvise",			/*Linux + 218*/
--    "getdents64",			/*Linux + 219*/
--    "fcntl64",			/*Linux + 220*/
--    "security",			/*Linux + 221*/
--    "gettid",			/*Linux + 222*/
--    "readahead",			/*Linux + 223*/
--    "setxattr",			/*Linux + 224*/
--    "lsetxattr",			/*Linux + 225*/
--    "fsetxattr",			/*Linux + 226*/
--    "getxattr",			/*Linux + 227*/
--    "lgetxattr",			/*Linux + 228*/
--    "fgetxattr",			/*Linux + 229*/
--    "listxattr",			/*Linux + 230*/
--    "llistxattr",			/*Linux + 231*/
--    "flistxattr",			/*Linux + 232*/
--    "removexattr",		/*Linux + 233*/
--    "lremovexattr",		/*Linux + 234*/
--    "fremovexattr",		/*Linux + 235*/
--    "tkill",			/*Linux + 236*/
--    "sendfile64",			/*Linux + 237*/
--    "futex",			/*Linux + 238*/
--    "sched_setaffinity",		/*Linux + 239*/
--    "sched_getaffinity",		/*Linux + 240*/
-+	"syscall",                         /* 0 */
-+	"exit",                            /* 1 */
-+	"fork",                            /* 2 */
-+	"read",                            /* 3 */
-+	"write",                           /* 4 */
-+	"open",                            /* 5 */
-+	"close",                           /* 6 */
-+	"waitpid",                         /* 7 */
-+	"creat",                           /* 8 */
-+	"link",                            /* 9 */
-+	"unlink",                          /* 10 */
-+	"execve",                          /* 11 */
-+	"chdir",                           /* 12 */
-+	"time",                            /* 13 */
-+	"mknod",                           /* 14 */
-+	"chmod",                           /* 15 */
-+	"lchown",                          /* 16 */
-+	"break",                           /* 17 */
-+	"unused18",                        /* 18 */
-+	"lseek",                           /* 19 */
-+	"getpid",                          /* 20 */
-+	"mount",                           /* 21 */
-+	"umount",                          /* 22 */
-+	"setuid",                          /* 23 */
-+	"getuid",                          /* 24 */
-+	"stime",                           /* 25 */
-+	"ptrace",                          /* 26 */
-+	"alarm",                           /* 27 */
-+	"unused28",                        /* 28 */
-+	"pause",                           /* 29 */
-+	"utime",                           /* 30 */
-+	"stty",                            /* 31 */
-+	"gtty",                            /* 32 */
-+	"access",                          /* 33 */
-+	"nice",                            /* 34 */
-+	"ftime",                           /* 35 */
-+	"sync",                            /* 36 */
-+	"kill",                            /* 37 */
-+	"rename",                          /* 38 */
-+	"mkdir",                           /* 39 */
-+	"rmdir",                           /* 40 */
-+	"dup",                             /* 41 */
-+	"pipe",                            /* 42 */
-+	"times",                           /* 43 */
-+	"prof",                            /* 44 */
-+	"brk",                             /* 45 */
-+	"setgid",                          /* 46 */
-+	"getgid",                          /* 47 */
-+	"signal",                          /* 48 */
-+	"geteuid",                         /* 49 */
-+	"getegid",                         /* 50 */
-+	"acct",                            /* 51 */
-+	"umount2",                         /* 52 */
-+	"lock",                            /* 53 */
-+	"ioctl",                           /* 54 */
-+	"fcntl",                           /* 55 */
-+	"mpx",                             /* 56 */
-+	"setpgid",                         /* 57 */
-+	"ulimit",                          /* 58 */
-+	"unused59",                        /* 59 */
-+	"umask",                           /* 60 */
-+	"chroot",                          /* 61 */
-+	"ustat",                           /* 62 */
-+	"dup2",                            /* 63 */
-+	"getppid",                         /* 64 */
-+	"getpgrp",                         /* 65 */
-+	"setsid",                          /* 66 */
-+	"sigaction",                       /* 67 */
-+	"sgetmask",                        /* 68 */
-+	"ssetmask",                        /* 69 */
-+	"setreuid",                        /* 70 */
-+	"setregid",                        /* 71 */
-+	"sigsuspend",                      /* 72 */
-+	"sigpending",                      /* 73 */
-+	"sethostname",                     /* 74 */
-+	"setrlimit",                       /* 75 */
-+	"getrlimit",                       /* 76 */
-+	"getrusage",                       /* 77 */
-+	"gettimeofday",                    /* 78 */
-+	"settimeofday",                    /* 79 */
-+	"getgroups",                       /* 80 */
-+	"setgroups",                       /* 81 */
-+	"reserved82",                      /* 82 */
-+	"symlink",                         /* 83 */
-+	"unused84",                        /* 84 */
-+	"readlink",                        /* 85 */
-+	"uselib",                          /* 86 */
-+	"swapon",                          /* 87 */
-+	"reboot",                          /* 88 */
-+	"readdir",                         /* 89 */
-+	"mmap",                            /* 90 */
-+	"munmap",                          /* 91 */
-+	"truncate",                        /* 92 */
-+	"ftruncate",                       /* 93 */
-+	"fchmod",                          /* 94 */
-+	"fchown",                          /* 95 */
-+	"getpriority",                     /* 96 */
-+	"setpriority",                     /* 97 */
-+	"profil",                          /* 98 */
-+	"statfs",                          /* 99 */
-+	"fstatfs",                         /* 100 */
-+	"ioperm",                          /* 101 */
-+	"socketcall",                      /* 102 */
-+	"syslog",                          /* 103 */
-+	"setitimer",                       /* 104 */
-+	"getitimer",                       /* 105 */
-+	"stat",                            /* 106 */
-+	"lstat",                           /* 107 */
-+	"fstat",                           /* 108 */
-+	"unused109",                       /* 109 */
-+	"iopl",                            /* 110 */
-+	"vhangup",                         /* 111 */
-+	"idle",                            /* 112 */
-+	"vm86",                            /* 113 */
-+	"wait4",                           /* 114 */
-+	"swapoff",                         /* 115 */
-+	"sysinfo",                         /* 116 */
-+	"ipc",                             /* 117 */
-+	"fsync",                           /* 118 */
-+	"sigreturn",                       /* 119 */
-+	"clone",                           /* 120 */
-+	"setdomainname",                   /* 121 */
-+	"uname",                           /* 122 */
-+	"modify_ldt",                      /* 123 */
-+	"adjtimex",                        /* 124 */
-+	"mprotect",                        /* 125 */
-+	"sigprocmask",                     /* 126 */
-+	"create_module",                   /* 127 */
-+	"init_module",                     /* 128 */
-+	"delete_module",                   /* 129 */
-+	"get_kernel_syms",                 /* 130 */
-+	"quotactl",                        /* 131 */
-+	"getpgid",                         /* 132 */
-+	"fchdir",                          /* 133 */
-+	"bdflush",                         /* 134 */
-+	"sysfs",                           /* 135 */
-+	"personality",                     /* 136 */
-+	"afs_syscall",                     /* 137 */
-+	"setfsuid",                        /* 138 */
-+	"setfsgid",                        /* 139 */
-+	"_llseek",                         /* 140 */
-+	"getdents",                        /* 141 */
-+	"_newselect",                      /* 142 */
-+	"flock",                           /* 143 */
-+	"msync",                           /* 144 */
-+	"readv",                           /* 145 */
-+	"writev",                          /* 146 */
-+	"cacheflush",                      /* 147 */
-+	"cachectl",                        /* 148 */
-+	"sysmips",                         /* 149 */
-+	"unused150",                       /* 150 */
-+	"getsid",                          /* 151 */
-+	"fdatasync",                       /* 152 */
-+	"_sysctl",                         /* 153 */
-+	"mlock",                           /* 154 */
-+	"munlock",                         /* 155 */
-+	"mlockall",                        /* 156 */
-+	"munlockall",                      /* 157 */
-+	"sched_setparam",                  /* 158 */
-+	"sched_getparam",                  /* 159 */
-+	"sched_setscheduler",              /* 160 */
-+	"sched_getscheduler",              /* 161 */
-+	"sched_yield",                     /* 162 */
-+	"sched_get_priority_max",          /* 163 */
-+	"sched_get_priority_min",          /* 164 */
-+	"sched_rr_get_interval",           /* 165 */
-+	"nanosleep",                       /* 166 */
-+	"mremap",                          /* 167 */
-+	"accept",                          /* 168 */
-+	"bind",                            /* 169 */
-+	"connect",                         /* 170 */
-+	"getpeername",                     /* 171 */
-+	"getsockname",                     /* 172 */
-+	"getsockopt",                      /* 173 */
-+	"listen",                          /* 174 */
-+	"recv",                            /* 175 */
-+	"recvfrom",                        /* 176 */
-+	"recvmsg",                         /* 177 */
-+	"send",                            /* 178 */
-+	"sendmsg",                         /* 179 */
-+	"sendto",                          /* 180 */
-+	"setsockopt",                      /* 181 */
-+	"shutdown",                        /* 182 */
-+	"socket",                          /* 183 */
-+	"socketpair",                      /* 184 */
-+	"setresuid",                       /* 185 */
-+	"getresuid",                       /* 186 */
-+	"query_module",                    /* 187 */
-+	"poll",                            /* 188 */
-+	"nfsservctl",                      /* 189 */
-+	"setresgid",                       /* 190 */
-+	"getresgid",                       /* 191 */
-+	"prctl",                           /* 192 */
-+	"rt_sigreturn",                    /* 193 */
-+	"rt_sigaction",                    /* 194 */
-+	"rt_sigprocmask",                  /* 195 */
-+	"rt_sigpending",                   /* 196 */
-+	"rt_sigtimedwait",                 /* 197 */
-+	"rt_sigqueueinfo",                 /* 198 */
-+	"rt_sigsuspend",                   /* 199 */
-+	"pread64",                         /* 200 */
-+	"pwrite64",                        /* 201 */
-+	"chown",                           /* 202 */
-+	"getcwd",                          /* 203 */
-+	"capget",                          /* 204 */
-+	"capset",                          /* 205 */
-+	"sigaltstack",                     /* 206 */
-+	"sendfile",                        /* 207 */
-+	"getpmsg",                         /* 208 */
-+	"putpmsg",                         /* 209 */
-+	"mmap2",                           /* 210 */
-+	"truncate64",                      /* 211 */
-+	"ftruncate64",                     /* 212 */
-+	"stat64",                          /* 213 */
-+	"lstat64",                         /* 214 */
-+	"fstat64",                         /* 215 */
-+	"pivot_root",                      /* 216 */
-+	"mincore",                         /* 217 */
-+	"madvise",                         /* 218 */
-+	"getdents64",                      /* 219 */
-+	"fcntl64",                         /* 220 */
-+	"reserved221",                     /* 221 */
-+	"gettid",                          /* 222 */
-+	"readahead",                       /* 223 */
-+	"setxattr",                        /* 224 */
-+	"lsetxattr",                       /* 225 */
-+	"fsetxattr",                       /* 226 */
-+	"getxattr",                        /* 227 */
-+	"lgetxattr",                       /* 228 */
-+	"fgetxattr",                       /* 229 */
-+	"listxattr",                       /* 230 */
-+	"llistxattr",                      /* 231 */
-+	"flistxattr",                      /* 232 */
-+	"removexattr",                     /* 233 */
-+	"lremovexattr",                    /* 234 */
-+	"fremovexattr",                    /* 235 */
-+	"tkill",                           /* 236 */
-+	"sendfile64",                      /* 237 */
-+	"futex",                           /* 238 */
-+	"sched_setaffinity",               /* 239 */
-+	"sched_getaffinity",               /* 240 */
-+	"io_setup",                        /* 241 */
-+	"io_destroy",                      /* 242 */
-+	"io_getevents",                    /* 243 */
-+	"io_submit",                       /* 244 */
-+	"io_cancel",                       /* 245 */
-+	"exit_group",                      /* 246 */
-+	"lookup_dcookie",                  /* 247 */
-+	"epoll_create",                    /* 248 */
-+	"epoll_ctl",                       /* 249 */
-+	"epoll_wait",                      /* 250 */
-+	"remap_file_pages",                /* 251 */
-+	"set_tid_address",                 /* 252 */
-+	"restart_syscall",                 /* 253 */
-+	"fadvise64",                       /* 254 */
-+	"statfs64",                        /* 255 */
-+	"fstatfs64",                       /* 256 */
-+	"timer_create",                    /* 257 */
-+	"timer_settime",                   /* 258 */
-+	"timer_gettime",                   /* 259 */
-+	"timer_getoverrun",                /* 260 */
-+	"timer_delete",                    /* 261 */
-+	"clock_settime",                   /* 262 */
-+	"clock_gettime",                   /* 263 */
-+	"clock_getres",                    /* 264 */
-+	"clock_nanosleep",                 /* 265 */
-+	"tgkill",                          /* 266 */
-+	"utimes",                          /* 267 */
-+	"mbind",                           /* 268 */
-+	"get_mempolicy",                   /* 269 */
-+	"set_mempolicy",                   /* 270 */
-+	"mq_open",                         /* 271 */
-+	"mq_unlink",                       /* 272 */
-+	"mq_timedsend",                    /* 273 */
-+	"mq_timedreceive",                 /* 274 */
-+	"mq_notify",                       /* 275 */
-+	"mq_getsetattr",                   /* 276 */
-+	"vserver",                         /* 277 */
-+	"waitid",                          /* 278 */
-+	"279",                             /* 279 */
-+	"add_key",                         /* 280 */
-+	"request_key",                     /* 281 */
-+	"keyctl",                          /* 282 */
-+	"set_thread_area",                 /* 283 */
-+	"inotify_init",                    /* 284 */
-+	"inotify_add_watch",               /* 285 */
-+	"inotify_rm_watch",                /* 286 */
-+	"migrate_pages",                   /* 287 */
-+	"openat",                          /* 288 */
-+	"mkdirat",                         /* 289 */
-+	"mknodat",                         /* 290 */
-+	"fchownat",                        /* 291 */
-+	"futimesat",                       /* 292 */
-+	"fstatat64",                       /* 293 */
-+	"unlinkat",                        /* 294 */
-+	"renameat",                        /* 295 */
-+	"linkat",                          /* 296 */
-+	"symlinkat",                       /* 297 */
-+	"readlinkat",                      /* 298 */
-+	"fchmodat",                        /* 299 */
-+	"faccessat",                       /* 300 */
-+	"pselect6",                        /* 301 */
-+	"ppoll",                           /* 302 */
-+	"unshare",                         /* 303 */
-+	"splice",                          /* 304 */
-+	"sync_file_range",                 /* 305 */
-+	"tee",                             /* 306 */
-+	"vmsplice",                        /* 307 */
-+	"move_pages",                      /* 308 */
-+	"set_robust_list",                 /* 309 */
-+	"get_robust_list",                 /* 310 */
-+	"kexec_load",                      /* 311 */
-+	"getcpu",                          /* 312 */
-+	"epoll_pwait",                     /* 313 */
-+	"ioprio_set",                      /* 314 */
-+	"ioprio_get",                      /* 315 */
-+	"utimensat",                       /* 316 */
-+	"signalfd",                        /* 317 */
-+	"timerfd",                         /* 318 */
-+	"eventfd",                         /* 319 */
-+	"fallocate",                       /* 320 */
-+	"timerfd_create",                  /* 321 */
-+	"timerfd_gettime",                 /* 322 */
-+	"timerfd_settime",                 /* 323 */
-+	"signalfd4",                       /* 324 */
-+	"eventfd2",                        /* 325 */
-+	"epoll_create1",                   /* 326 */
-+	"dup3",                            /* 327 */
-+	"pipe2",                           /* 328 */
-+	"inotify_init1",                   /* 329 */
---- sysdeps/linux-gnu/mipsel/mipsel.h.orig	2009-07-25 17:13:02.000000000 +0200
-+++ sysdeps/linux-gnu/mipsel/mipsel.h	2010-08-01 21:29:24.532173679 +0200
-@@ -1,11 +1,12 @@
- #ifndef MIPSEL_h
- #define  MIPSEL_h
--// linux-2.4.30/arch/mips/kernel/ptrace.c for these offsets.
-+// asm/ptrace.h for these offsets.
- #define off_v0 2
- #define off_pc 64
- #define off_a0 4
- #define off_a3 7
- #define off_lr 31
-+#define off_fpr0 32 
- #define off_sp 29
- 
- #endif //  MIPSEL_h
diff --git a/make/ltrace/patches/200-susv3-legacy.patch b/make/ltrace/patches/200-susv3-legacy.patch
deleted file mode 100644
index c58ebb2..0000000
--- a/make/ltrace/patches/200-susv3-legacy.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- read_config_file.c.orig	2009-07-25 17:13:02.000000000 +0200
-+++ read_config_file.c	2010-08-01 21:29:24.642176420 +0200
-@@ -83,7 +83,7 @@
- 
- 	while (tmp->name) {
- 		if (!strncmp(*str, tmp->name, strlen(tmp->name))
--				&& index(" ,()#*;012345[", *(*str + strlen(tmp->name)))) {
-+				&& strchr(" ,()#*;012345[", *(*str + strlen(tmp->name)))) {
- 			*str += strlen(tmp->name);
- 			return lookup_prototype(tmp->pt);
- 		}
diff --git a/make/ltrace/patches/300-link_available_libraries_only.patch b/make/ltrace/patches/300-link_available_libraries_only.patch
deleted file mode 100644
index 3cea7d1..0000000
--- a/make/ltrace/patches/300-link_available_libraries_only.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- configure
-+++ configure
-@@ -34,6 +34,7 @@
- then
-   HAVE_LIBIBERTY=1
-   echo "yes"
-+  LIBS="$LIBS -liberty"
- else
-   unset HAVE_LIBIBERTY
-   echo "no"
-@@ -52,6 +53,7 @@
- then
-   HAVE_LIBSUPC__=1
-   echo "yes"
-+  LIBS="$LIBS -lsupc++"
- else
-   unset HAVE_LIBSUPC__
-   echo "no"
-@@ -67,7 +69,7 @@
-   return 0;
- }
- EOF
--if $CC conftest.c 2>/dev/null
-+if $CC conftest.c -lelf 2>/dev/null
- then
-   HAVE_ELF_C_READ_MMAP=1
-   echo "yes"
-@@ -78,7 +80,7 @@
- rm -f conftest.c a.out
- 
- CFLAGS='-g -O2'
--LIBS='-lelf -lsupc++ -liberty '
-+LIBS="$LIBS -lelf"
- INSTALL='$/usr/bin/install -c'
- iquote='-iquote '
- iquoteend=''
diff --git a/make/ltrace/patches/empty.patch b/make/ltrace/patches/empty.patch
new file mode 100644
index 0000000..e69de29
