Merge pull request #9 from kees/trace

Trace
tests: run-time detect constructor order

It seems not all toolchains actually run constructors in reverse. To
make sure we get tests run in source order, detect which direction
constructors are executed in, and adjust the list building logic.

Signed-off-by: Kees Cook <keescook@chromium.org>