Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/plt-elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ static ElfWord lib_dt_lookup_val(plt_lib lib, ElfSWord tag)
#if !defined HAVE__R_DEBUG
static int find_dynamic(struct dl_phdr_info *info, size_t size, void *data)
{
ElfAddr *ctx = data;
ElfW(Addr) *ctx = data;

for (ElfOff i = 0; i < info->dlpi_phnum; ++i) {
for (ElfW(Off) i = 0; i < info->dlpi_phnum; ++i) {
if (info->dlpi_phdr[i].p_type == PT_DYNAMIC) {
*ctx = info->dlpi_addr + info->dlpi_phdr[i].p_vaddr;
return 1;
Expand Down Expand Up @@ -132,7 +132,7 @@ static struct r_debug *get_r_debug(void)
# if defined HAVE__DYNAMIC
if (!dbg) {
# endif
ElfAddr dynamic;
ElfW(Addr) dynamic;
if (dl_iterate_phdr(find_dynamic, &dynamic) > 0)
dbg = r_debug_from_dynamic((void *) dynamic);
# if defined HAVE__DYNAMIC
Expand Down