Oops.  The code redir subsystem would work better if it actually got
initialised.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3347 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index b81ba75..88383e7 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -2647,7 +2647,6 @@
       VG_(mprotect)( (void *)VG_(client_trampoline_code),
 		     VG_(trampoline_code_length), VKI_PROT_READ|VKI_PROT_EXEC );
 #endif
-
       /* Make sure this segment isn't treated as stack */
       seg = VG_(find_segment)(VG_(client_trampoline_code));
       if (seg)
@@ -2674,6 +2673,7 @@
       { Long q; for (q = 0; q < 10ULL *1000*1000*1000; q++) ; }
    }
 
+   //--------------------------------------------------------------
    // Search for file descriptors that are inherited from our parent
    //   p: process_cmd_line_options  [for VG_(clo_track_fds)]
    //--------------------------------------------------------------
@@ -2749,6 +2749,13 @@
    VG_(init_tt_tc)();
 
    //--------------------------------------------------------------
+   // Read debug info to find glibc entry points to intercept
+   //   p: parse_procselfmaps? [XXX for debug info?]
+   //   p: init_tt_tc [so it can call VG_(search_transtab) safely]
+   //--------------------------------------------------------------
+   VG_(setup_code_redirect_table)();
+
+   //--------------------------------------------------------------
    // Verbosity message
    //   p: end_rdtsc_calibration [so startup message is printed first]
    //--------------------------------------------------------------