Blame SOURCES/ltrace-0.7.2-e_machine.patch

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