1 commit 48b67d71ec677d1b3168e52a68b644784cead604
2 Author: Andreas Schwab <schwab@redhat.com>
3 Date: Wed Sep 14 12:12:25 2011 +0200
5 Also relocate in dependency order when doing symbol dependency testing
7 diff --git a/elf/rtld.c b/elf/rtld.c
8 index 764140d..324d979 100644
11 @@ -2027,24 +2027,21 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n",
13 /* We have to do symbol dependency testing. */
14 struct relocate_args args;
18 args.reloc_mode = GLRO(dl_lazy) ? RTLD_LAZY : 0;
21 - while (l->l_next != NULL)
24 + i = main_map->l_searchlist.r_nlist;
27 + struct link_map *l = main_map->l_initfini[i];
28 if (l != &GL(dl_rtld_map) && ! l->l_faked)
31 _dl_receive_error (print_unresolved, relocate_doit,
38 if ((GLRO(dl_debug_mask) & DL_DEBUG_PRELINK)