Add arch_elf_destroy
diff --git a/common.h b/common.h
index 6da6087..c8e5e5d 100644
--- a/common.h
+++ b/common.h
@@ -221,6 +221,8 @@
void os_ltrace_exiting(void);
int arch_elf_init(struct ltelf *lte);
+void arch_elf_destroy(struct ltelf *lte);
+
enum plt_status {
plt_fail,
plt_ok,
diff --git a/ltrace-elf.c b/ltrace-elf.c
index 23cbc65..48ee6ce 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -435,6 +435,7 @@
void
do_close_elf(struct ltelf *lte) {
debug(DEBUG_FUNCTION, "do_close_elf()");
+ arch_elf_destroy(lte);
elf_end(lte->elf);
close(lte->fd);
}
diff --git a/sysdeps/linux-gnu/mipsel/plt.c b/sysdeps/linux-gnu/mipsel/plt.c
index 5eec221..3ffaddf 100644
--- a/sysdeps/linux-gnu/mipsel/plt.c
+++ b/sysdeps/linux-gnu/mipsel/plt.c
@@ -124,4 +124,9 @@
return 0;
}
+void
+arch_elf_destroy(struct ltelf *lte)
+{
+}
+
/**@}*/
diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
index 6075d7d..4b2b2f4 100644
--- a/sysdeps/linux-gnu/ppc/plt.c
+++ b/sysdeps/linux-gnu/ppc/plt.c
@@ -224,3 +224,7 @@
lte->lte_flags |= LTE_PLT_EXECUTABLE;
return 0;
}
+void
+arch_elf_destroy(struct ltelf *lte)
+{
+}