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: Revert "Randomize Shared Object Loading Order"

The two rtld related commit merged into one, and cleaned up the style.
To avoid the merge conflict, revert this two patch...

This reverts commit 0159afbe6140b4cd41af43aff229ed50c5561a40.

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD: Revert "HBSD: Randomize shared object loading order"

The two rtld related commit merged into one, and cleaned up the style.
To avoid the merge conflict, revert this two patch...

This reverts commit b3005589e45d98fcec0707b33ae1cf616381550f.

Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
Merge branch 'hardened/current/master' into hardened/current/unstable