See https://lists.freebsd.org/pipermail/freebsd-dtrace/2015-January/000342.html
I've changed libdtrace to create DOF in a section named _SUNW_dof rather than .SUNW_dof so that we can find the section address easily. drti.o now uses the startSUNW_dof and stopSUNW_dof variables (emitted by ld) for this purpose.
I've also changed sys.mk to add a new variable, DFLAGS, which is a generic flags variable for use with dtrace(1) in the build. Rationale: users might wish to add -x lazyload to DFLAGS, which tells dtrace(1) not to link drti.o into the output executable/library. In this case, dtrace(1) discovers and loads the DOF when it attaches to the target process, rather than having the process load the DOF itself during startup. I plan to commit the DFLAGS change in a separate commit than the rest of this revision.
N.B. lazyload mode currently doesn't work on FreeBSD; it'll be fixed in a separate change.