Modularised m_redir.  As a side-effect, managed to remove
$PLATFORM/core_platform.c and $PLATFORM/libplatform.a, hooray.





git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3808 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am
index 6c84309..ade1a6d 100644
--- a/coregrind/Makefile.am
+++ b/coregrind/Makefile.am
@@ -45,6 +45,7 @@
 	pub_core_hashtable.h	\
 	pub_core_mallocfree.h	\
 	pub_core_options.h	\
+	pub_core_redir.h	\
 	pub_core_replacemalloc.h\
 	pub_core_sigframe.h	\
 	pub_core_skiplist.h	\
@@ -79,6 +80,7 @@
 	m_hashtable.c \
 	m_mallocfree.c \
 	m_options.c \
+	m_redir.c \
 	m_skiplist.c \
 	m_stacktrace.c \
 	m_tooliface.c \
@@ -95,19 +97,16 @@
 	vg_symtab2.c \
 	vg_threadmodel.c \
 	vg_pthreadmodel.c \
-	vg_redir.c \
 	vg_dwarf.c \
 	vg_stabs.c \
 	vg_symtypes.c
 
-## libplatform.a must be before libarch.a and libos.a, it seems.
 stage2_extra= \
 	m_dispatch/libdispatch.a \
 	m_demangle/libdemangle.a \
 	m_aspacemgr/libaspacemgr.a \
 	m_sigframe/libsigframe.a \
 	m_syscalls/libsyscalls.a \
-	${VG_PLATFORM}/libplatform.a \
 	${VG_ARCH}/libarch.a \
 	${VG_OS}/libos.a \
 	@VEX_DIR@/libvex.a