Make MIPS and PPC arch.h into full-fledged include file, glue in sysdep.h
diff --git a/sysdeps/linux-gnu/ppc/arch.h b/sysdeps/linux-gnu/ppc/arch.h
index 6fd4714..5663916 100644
--- a/sysdeps/linux-gnu/ppc/arch.h
+++ b/sysdeps/linux-gnu/ppc/arch.h
@@ -1,3 +1,8 @@
+#ifndef LTRACE_PPC_ARCH_H
+#define LTRACE_PPC_ARCH_H
+
+#include <gelf.h>
+
#define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 }
#define BREAKPOINT_LENGTH 4
#define DECR_PC_AFTER_BREAK 0
@@ -13,21 +18,16 @@
#define PLT_REINITALISATION_BP "_start"
-/* Start of arch-specific functions. */
#define ARCH_HAVE_UMOVELONG
#define ARCH_HAVE_ATOMIC_SINGLESTEP
-
-#define PPC_NOP { 0x60, 0x00, 0x00, 0x00 }
-#define PPC_NOP_LENGTH 4
-
-#if (PPC_NOP_LENGTH != BREAKPOINT_LENGTH)
-#error "Length of the breakpoint value not equal to the length of a nop instruction"
-#endif
-
+#define ARCH_HAVE_ADD_PLT_ENTRY
#define ARCH_HAVE_LTELF_DATA
-#ifdef DEFINING_LTELF
+
+struct library_symbol;
struct arch_ltelf_data {
GElf_Addr plt_stub_vma;
int secure_plt;
+ struct library_symbol *stubs;
};
-#endif
+
+#endif /* LTRACE_PPC_ARCH_H */