Blame SOURCES/ltrace-0.7.2-e_machine.patch

fc6d88
diff -up ltrace-0.7.2/proc.c\~ ltrace-0.7.2/proc.c
fc6d88
--- ltrace-0.7.2/proc.c~	2014-02-13 12:16:33.000000000 +0100
fc6d88
+++ ltrace-0.7.2/proc.c	2014-02-13 15:44:25.000000000 +0100
fc6d88
@@ -194,9 +197,11 @@ process_init(struct process *proc, const
fc6d88
 		goto fail;
fc6d88
 	}
fc6d88
 
fc6d88
-	if (proc->leader != proc)
fc6d88
-		return 0;
fc6d88
-	if (process_init_main(proc) < 0) {
fc6d88
+	if (proc->leader != proc) {
fc6d88
+		proc->e_machine = proc->leader->e_machine;
fc6d88
+		proc->e_class = proc->leader->e_class;
fc6d88
+		get_arch_dep(proc);
fc6d88
+	} else if (process_init_main(proc) < 0) {
fc6d88
 		process_bare_destroy(proc, 0);
fc6d88
 		goto fail;
fc6d88
 	}
fc6d88
fc6d88
Diff finished.  Thu Feb 13 15:50:21 2014