Commit ad9e4c47 authored by Simon McVittie's avatar Simon McVittie
Browse files

process_phdr: Make scopes clearer



Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 29f2e0a2
......@@ -60,13 +60,17 @@ process_phdr (struct dl_phdr_info *info,
int ret = 0;
for( int j = 0; !ret && (j < info->dlpi_phnum); j++ )
{
if( info->dlpi_phdr[j].p_type == PT_DYNAMIC )
{
ret = process_pt_dynamic( info->dlpi_phdr[j].p_vaddr,
info->dlpi_phdr[j].p_memsz,
(void *) info->dlpi_addr,
process_dt_rela,
process_dt_rel,
rdata );
}
}
if( ret == 0 && rdata->seen != NULL )
ptr_list_push_addr( rdata->seen, info->dlpi_addr );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment