rtld: Add a postinit debugger hook
authorJohn Marino <draco@marino.st>
Sun, 30 Nov 2014 16:11:13 +0000 (17:11 +0100)
committerJohn Marino <draco@marino.st>
Sun, 30 Nov 2014 16:50:50 +0000 (17:50 +0100)
commit7a6072cc450273fdb4772f284f36b1bdf168afc9
tree6a77a1d360996cef5067688ef0a02a945274aa83
parentff452243b78f779a7264d7443795005236f6950e
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)
libexec/rtld-elf/Symbol.map
libexec/rtld-elf/rtld.c