git: rtld: Add a postinit debugger hook

John Marino marino at
Sun Nov 30 08:51:23 PST 2014

commit 7a6072cc450273fdb4772f284f36b1bdf168afc9
Author: John Marino <draco at>
Date:   Sun Nov 30 17:11:13 2014 +0100

    rtld: Add a postinit debugger hook
    FreeBSD's dtrace(1) uses this hook to halt the "victim" process before its
    entry point is called, at which point probes and DOF data are registered
    with the kernel.  The r_debg_state hook cannot be used for this purpose,
    as it is called before the program's init routines are invoked and in
    particular before ODF is registered.  It may or may not be useful for
    DragonFly by itself, but if dtrace every comes in, rtld will be ready.
    Taken from:	FreeBSD svn 265456 (6 May 2014)
    		FreeBSD svn 265578 (7 May 2014)

Summary of changes:
 libexec/rtld-elf/ |  5 +++++
 libexec/rtld-elf/rtld.c     | 15 +++++++++++++++
 2 files changed, 20 insertions(+)

DragonFly BSD source repository

More information about the Commits mailing list