Deleted Added
full compact
26c26
< * $FreeBSD: head/libexec/rtld-elf/rtld.c 212497 2010-09-12 17:04:51Z nwhitehorn $
---
> * $FreeBSD: head/libexec/rtld-elf/rtld.c 214728 2010-11-03 09:23:08Z kib $
1277a1278,1279
> if (root->dag_inited)
> return;
1279a1282
> root->dag_inited = true;
2048,2049c2051,2060
< /* Bump the reference counts for objects on this DAG. */
< ref_dag(obj);
---
> /*
> * Bump the reference counts for objects on this DAG. If
> * this is the first dlopen() call for the object that was
> * already loaded as a dependency, initialize the dag
> * starting at it.
> */
> if (obj->dl_refcount == 1)
> init_dag(obj);
> else
> ref_dag(obj);