Revert "Revert "Add "linkage" test options""

This reverts commit 91a8e6f60c508c6e010b6ef8e4056e3a6f04c447.

Reason for revert: Moved tests to gtest and under compilation only.

Change-Id: I60899694946353bfcd334473c20bb17c84f095e0
Bug: none
Test: make test-art-host-gtest-dex2oat_test
11 files changed