Check whether ABI is supported before we execute the binary
- this is fallout of the reorganization of open_program/execute_program.
I still think it makes better sense this wey, even though we need to
do the additional checking step now.
diff --git a/libltrace.c b/libltrace.c
index e731fe1..19bfafd 100644
--- a/libltrace.c
+++ b/libltrace.c
@@ -107,6 +107,11 @@
}
}
if (command) {
+ /* Check that the binary ABI is supported before
+ * calling execute_program. */
+ struct ltelf lte = {};
+ open_elf(<e, command);
+
open_program(command, execute_program(command, argv), 0);
}
opt_p_tmp = opt_p;