Add ARCH_HAVE_DYNLINK_DONE
diff --git a/proc.c b/proc.c
index 3f5789e..898861b 100644
--- a/proc.c
+++ b/proc.c
@@ -42,6 +42,13 @@
 }
 #endif
 
+#ifndef ARCH_HAVE_DYNLINK_DONE
+void
+arch_dynlink_done(struct Process *proc)
+{
+}
+#endif
+
 static void add_process(struct Process *proc, int was_exec);
 
 static int
@@ -373,8 +380,14 @@
 		old_ntasks = ntasks;
 	}
 
+	struct Process *leader = pid2proc(pid)->leader;
+
+	/* XXX Is there a way to figure out whether _start has
+	 * actually already been hit?  */
+	arch_dynlink_done(leader);
+
 	/* Done.  Continue everyone.  */
-	each_task(pid2proc(pid)->leader, NULL, start_one_pid, NULL);
+	each_task(leader, NULL, start_one_pid, NULL);
 }
 
 static enum callback_status