Add support for PIC executables (e.g. firefox on Ubuntu 11) by adding
the "auxv" protocol packet to gdbsrv.  (Philippe Waroquiers,
philippe.waroquiers@skynet.be).  Bug 214909 comment 108.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11836 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/gdbserver_tests/main_pic.c b/gdbserver_tests/main_pic.c
new file mode 100644
index 0000000..e452b30
--- /dev/null
+++ b/gdbserver_tests/main_pic.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+static void another_func(char *msg)
+{
+   printf ("another func called msg %s\n", msg);
+}
+
+int main (int argc, char *argv[])
+{
+   printf("address of main %p\n", &main);
+   printf("address of another_func %p\n", &another_func);
+   another_func("called from main");
+   return 0;
+}