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:
parent
47047e3418
commit
7879263397
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212495
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user