DescriptionPass -mtls-use-call when building libraries used in IRT.
This adds -mtls-use-call to the compilation options on x86-32 for the
platform, srpc, and ppapi_proxy libraries. These use TLS (either
themselves or by dint of using newlib's stdout et al) and are linked
into the IRT blob, which must segregate IRT-private TLS uses from user TLS.
We also add a test run_irt_tls_test that does a sanity check with objdump
that no direct-register TLS use leaked into irt.nexe in fact. Note this
will later need to be extended to check that the ARM irt.nexe does not use
r9 in the same way.
Finally, we change the conditionalization of the building of irt_tls.c now that x86-32 can also use it. Only bitcode builds are still broken.
BUG=http://code.google.com/p/nativeclient/issues/detail?id=1595
TEST=trybots
Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=4866
Patch Set 1 #Patch Set 2 : Deconditionalize irt_tls.c #
Total comments: 5
Patch Set 3 : made requested cosmetic fixes #
Total comments: 3
Patch Set 4 : Add explanatory comments. #Patch Set 5 : more comments; typo fix; conditionalize irt_tls.c vs bitcode #
Total comments: 1
Messages
Total messages: 9 (0 generated)
|