Fix building termcap.db when make obj is run beforehand from a clean tree by
using make variables for the filenames, which helps resolve pathing
appropriately when running cap_mkdb

X-MFC with: r275687
Pointyhat to: me
Fix a bug in r266857: nd6_dad_find() must return NULL if it doesn't find
a matching element in the DAD queue.

Reported by:	Holger Hans Peter Freyther <holger@freyther.de>
MFC after:	3 days
HBSD: Randomize shared object loading order in rtld

HBSD: Randomize shared object loading order

This is just phase 1 (proof of concept) of shared object loading order
randomization. Cleanup and performance enhancements along with major
testing needed in order to consider this code production-ready.

github-issue: #89
(cherry picked from commit b3005589e45d98fcec0707b33ae1cf616381550f)

Randomize Shared Object Loading Order

github-issue: #89
Refactor code. Clean it up and make it perform better. Tested on a full
amd64 install, complete with Xorg, xfce4, and Chromium. All works
perfectly, albeit with slightly more lag. Further performance
enhancements ought to be researched.

(cherry picked from commit 0159afbe6140b4cd41af43aff229ed50c5561a40)

Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>

HBSD: follow rtld's braindamage coding style..

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD: bump __HardenedBSD_version, to reflect rtld changes

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
Merge remote-tracking branch 'freebsd/master' into hardened/current/master
Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/log