* elf/dl-lookup.c (add_dependency): Always search l_initfini if

the list exists.
This commit is contained in:
Ulrich Drepper 2005-03-19 09:10:45 +00:00
parent 3d786f1969
commit f7e39466ca
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2005-03-19 Ulrich Drepper <drepper@redhat.com> 2005-03-19 Ulrich Drepper <drepper@redhat.com>
* elf/dl-lookup.c (add_dependency): Always search l_initfini if
the list exists.
* elf/Makefile: Add rules to build and run order2. * elf/Makefile: Add rules to build and run order2.
* elf/order2.c: New file. * elf/order2.c: New file.
* elf/order2mod1.c: New file. * elf/order2mod1.c: New file.

View File

@ -108,7 +108,7 @@ add_dependency (struct link_map *undef_map, struct link_map *map)
/* Determine whether UNDEF_MAP already has a reference to MAP. First /* Determine whether UNDEF_MAP already has a reference to MAP. First
look in the normal dependencies. */ look in the normal dependencies. */
if (undef_map->l_searchlist.r_list != NULL) if (undef_map->l_initfini != NULL)
{ {
list = undef_map->l_initfini; list = undef_map->l_initfini;