summaryrefslogtreecommitdiff
path: root/libc/elf/pldd-xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/elf/pldd-xx.c')
-rw-r--r--libc/elf/pldd-xx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/elf/pldd-xx.c b/libc/elf/pldd-xx.c
index 0e3fcb78c..8ecd468dd 100644
--- a/libc/elf/pldd-xx.c
+++ b/libc/elf/pldd-xx.c
@@ -64,6 +64,9 @@ static_assert (next, (offsetof (struct libname_list, next)
struct E(r_debug)
{
int r_version;
+#if CLASS == 64
+ int pad;
+#endif
EW(Addr) r_map;
};
#if CLASS == __ELF_NATIVE_CLASS
@@ -75,7 +78,8 @@ static_assert (r_map, (offsetof (struct r_debug, r_map)
static int
-E(find_maps) (pid_t pid, EW(Ehdr) *ehdr, void *auxv, size_t auxv_size)
+
+E(find_maps) (pid_t pid, void *auxv, size_t auxv_size)
{
EW(Addr) phdr = 0;
unsigned int phnum = 0;
@@ -97,6 +101,7 @@ E(find_maps) (pid_t pid, EW(Ehdr) *ehdr, void *auxv, size_t auxv_size)
default:
break;
}
+ printf("progam header at offset %lu\n", (unsigned long)phdr);
if (phdr == 0 || phnum == 0 || phent == 0)
error (EXIT_FAILURE, 0, gettext ("cannot find program header of process"));