summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-09-12 15:59:14 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-09-12 15:59:14 +0000
commit4f68232de5defadacb2582321d94f8ca13972749 (patch)
tree460c859c9eaf7fb8cd8d58c2932da191e3b961ae /cddl
parentf29acedb77bf5aa892f9cb49e2dddda97b93f64b (diff)
downloadFreeBSD-src-4f68232de5defadacb2582321d94f8ca13972749.zip
FreeBSD-src-4f68232de5defadacb2582321d94f8ca13972749.tar.gz
Give a chance to the target binary to run the ctors by waiting until it
has reached main(). This allows plockstat to work. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
index a8070e6..962da1a 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
@@ -1103,7 +1103,7 @@ alloc:
#if defined(sun)
dtp->dt_prcmode = DT_PROC_STOP_PREINIT;
#else
- dtp->dt_prcmode = DT_PROC_STOP_POSTINIT;
+ dtp->dt_prcmode = DT_PROC_STOP_MAIN;
#endif
dtp->dt_linkmode = DT_LINK_KERNEL;
dtp->dt_linktype = DT_LTYP_ELF;
OpenPOWER on IntegriCloud