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
This commit is contained in:
Rui Paulo 2010-09-12 15:59:14 +00:00
parent 47047e3418
commit 7879263397
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212495

View File

@ -1103,7 +1103,7 @@ dt_vopen(int version, int flags, int *errp,
#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;