Skip to content
Snippets Groups Projects
Commit 830171cb authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Dont walk the link map in both directions: just rewind it first.

parent fa1f2632
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -1327,11 +1327,8 @@ static int install_wrappers ( void *dl_handle,
map ? map->l_prev : NULL );
// no guarantee that we're at either end of the link map:
// walk it in both directions.
if (map->l_prev)
for( struct link_map *m = map; m; m = m->l_prev )
if( !excluded_from_wrap(m->l_name, (char **)exclude) )
wrap( m->l_name, m->l_addr, m->l_ld, wrappers );
while( map->l_prev )
map = map->l_prev;
if (map->l_next)
for( struct link_map *m = map; m; m = m->l_next )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment