Version: 0.3.36
* Fixed "--indent" option
* Got rid of Debian and RedHat specific parts in tarball
diff --git a/sysdeps/linux-gnu/ppc/Makefile b/sysdeps/linux-gnu/ppc/Makefile
index 4b347a5..60d7531 100644
--- a/sysdeps/linux-gnu/ppc/Makefile
+++ b/sysdeps/linux-gnu/ppc/Makefile
@@ -1,9 +1,9 @@
-OBJ = trace.o regs.o
+OBJ = trace.o regs.o plt.o
all: arch.o
arch.o: $(OBJ)
- $(LD) -r -o arch.o $(OBJ)
+ $(CC) -nostdlib -r -o arch.o $(OBJ)
clean:
$(RM) $(OBJ) arch.o
diff --git a/sysdeps/linux-gnu/ppc/arch.h b/sysdeps/linux-gnu/ppc/arch.h
index 72fa45f..e04e885 100644
--- a/sysdeps/linux-gnu/ppc/arch.h
+++ b/sysdeps/linux-gnu/ppc/arch.h
@@ -1,3 +1,6 @@
#define BREAKPOINT_VALUE { 0x7f, 0xe0, 0x00, 0x08 }
#define BREAKPOINT_LENGTH 4
#define DECR_PC_AFTER_BREAK 0
+
+#define LT_ELFCLASS ELFCLASS32
+#define LT_ELF_MACHINE EM_PPC
diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
new file mode 100644
index 0000000..9e2c094
--- /dev/null
+++ b/sysdeps/linux-gnu/ppc/plt.c
@@ -0,0 +1,9 @@
+#include <gelf.h>
+#include "ltrace.h"
+#include "elf.h"
+
+GElf_Addr
+arch_plt_sym_val (struct ltelf *lte, size_t ndx, GElf_Rela *rela)
+{
+ return rela->r_offset;
+}
diff --git a/sysdeps/linux-gnu/ppc/syscallent.h b/sysdeps/linux-gnu/ppc/syscallent.h
index e709aab..2bbba38 100644
--- a/sysdeps/linux-gnu/ppc/syscallent.h
+++ b/sysdeps/linux-gnu/ppc/syscallent.h
@@ -222,7 +222,7 @@
"futex", /* 221 */
"sched_setaffinity", /* 222 */
"sched_getaffinity", /* 223 */
- "security", /* 224 */
+ "224", /* 224 */
"tuxcall", /* 225 */
"sendfile64", /* 226 */
"io_setup", /* 227 */
@@ -230,3 +230,34 @@
"io_getevents", /* 229 */
"io_submit", /* 230 */
"io_cancel", /* 231 */
+ "set_tid_address", /* 232 */
+ "fadvise64", /* 233 */
+ "exit_group", /* 234 */
+ "lookup_dcookie", /* 235 */
+ "epoll_create", /* 236 */
+ "epoll_ctl", /* 237 */
+ "epoll_wait", /* 238 */
+ "remap_file_pages", /* 239 */
+ "timer_create", /* 240 */
+ "timer_settime", /* 241 */
+ "timer_gettime", /* 242 */
+ "timer_getoverrun", /* 243 */
+ "timer_delete", /* 244 */
+ "clock_settime", /* 245 */
+ "clock_gettime", /* 246 */
+ "clock_getres", /* 247 */
+ "clock_nanosleep", /* 248 */
+ "swapcontext", /* 249 */
+ "tgkill", /* 250 */
+ "utimes", /* 251 */
+ "statfs64", /* 252 */
+ "fstatfs64", /* 253 */
+ "fadvise64_64", /* 254 */
+ "rtas", /* 255 */
+ "mq_open", /* 262 */
+ "mq_unlink", /* 263 */
+ "mq_timedsend", /* 264 */
+ "mq_timedreceive", /* 265 */
+ "mq_notify", /* 266 */
+ "mq_getsetattr", /* 267 */
+ "kexec_load", /* 268 */