PNaCl Dynamic Linking: Exporting / Importing TLS Variables.

This patch modifies "handleTlsVars" by splitting it into two parts.
1) It handles local TLS variables (the old case of handling TLS, but
with additional steps to export TLS variables).
2) It handles imported TLS variables by replacing imports with
TLSVarGetter closures.

The TLS imports are inserted as new fields in the PSO Root, but the
TLS exports re-use existing structures.

Additionally, ExpandTls's "buildTlsTemplate" has been modified to
allow global TLS variables without initializers (imported TLS variables).

Used by https://codereview.chromium.org/1867623003/

TEST=`llvm-lit -sv test`, pll_dependencies_test, run_pll_loader_test
BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=4351
R=mseaborn@chromium.org

Review URL: https://codereview.chromium.org/1861523002 .
3 files changed