Added beginnings of an ARM port, to the point where it compiles.  It does not
run, though.  There are lots of stubs to be filled in.  (The asm ones currently
just have "swi" in them, which seems to cause seg faults.) 

Also, some of the macros are decided dubious, especially:

  ARCH_* are bogus
  SYSCALL_RET is bogus
  PLATFORM_SET_SYSCALL_RESULT is bogus
  not sure about SET_SYSCALL_RETVAL
  FIRST_STACK_FRAME et al -- bogus?
  VG_MAX_JUMPS ?

And in stage2.lds, the 0x8048000 is almost certainly wrong


This required some tweakings of the core:
- some of the vki_*.h kernel types were fixed up

- had to disable the AM_PROG_CC_C_O macro in configure.in, because automake
  (autoconf?) didn't like it...

- some "#ifdef __x86__" guards were introduced, for nasty x86 things I don't
  yet know how to factor out (trampoline page muck, sysinfo page muck).

- fixed a minor stupidity in vg_proxylwp.c.

- moved the ptrace wrapper into the x86-linux part

- had to change the intercept mangling scheme, to use 'J' instead of '$' as the
  escape char because GCC didn't like '$'.  This is all very dubious, and only
  works because none of our intercepted symbols contains a 'J'.  To be fixed up
  ASAP.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3120 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index 1d664b7..882fdf1 100644
--- a/configure.in
+++ b/configure.in
@@ -29,7 +29,7 @@
 
 AC_PROG_LN_S
 AC_PROG_CC
-AM_PROG_CC_C_O
+##AM_PROG_CC_C_O
 AC_PROG_CPP
 AC_PROG_CXX
 AC_PROG_RANLIB
@@ -350,26 +350,33 @@
    include/valgrind.h 
    include/Makefile 
    include/x86/Makefile 
+   include/arm/Makefile 
    include/linux/Makefile 
    include/x86-linux/Makefile 
+   include/arm-linux/Makefile 
    auxprogs/Makefile
    coregrind/Makefile 
    coregrind/demangle/Makefile 
    coregrind/docs/Makefile
    coregrind/x86/Makefile
+   coregrind/arm/Makefile
    coregrind/linux/Makefile
    coregrind/x86-linux/Makefile
+   coregrind/arm-linux/Makefile
    addrcheck/Makefile
    addrcheck/tests/Makefile
    addrcheck/docs/Makefile
    memcheck/Makefile
    memcheck/tests/Makefile
    memcheck/tests/x86/Makefile
+   memcheck/tests/arm/Makefile
    memcheck/docs/Makefile
    cachegrind/Makefile
    cachegrind/x86/Makefile
+   cachegrind/arm/Makefile
    cachegrind/tests/Makefile
    cachegrind/tests/x86/Makefile
+   cachegrind/tests/arm/Makefile
    cachegrind/docs/Makefile
    cachegrind/cg_annotate
    helgrind/Makefile
@@ -388,6 +395,7 @@
    none/Makefile
    none/tests/Makefile
    none/tests/x86/Makefile
+   none/tests/arm/Makefile
    none/docs/Makefile
 )