Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Issue 6839002: Pass -mtls-use-call when building libraries used in IRT. (Closed)

Created:
9 years, 8 months ago by Roland McGrath
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Pass -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
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -17 lines) Patch
M site_scons/site_tools/naclsdk.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/shared/platform/nacl.scons View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M src/shared/ppapi_proxy/nacl.scons View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M src/shared/srpc/nacl.scons View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
A src/untrusted/irt/check_tls.py View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M src/untrusted/irt/nacl.scons View 1 2 3 4 1 chunk +31 lines, -8 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Roland McGrath
Passing trybots modulo one flaky and the mac10.5 bot having unexplained slowness (reproduced again) on ...
9 years, 8 months ago (2011-04-13 19:47:09 UTC) #1
Mark Seaborn
http://codereview.chromium.org/6839002/diff/1001/src/untrusted/irt/check_tls.py File src/untrusted/irt/check_tls.py (right): http://codereview.chromium.org/6839002/diff/1001/src/untrusted/irt/check_tls.py#newcode14 src/untrusted/irt/check_tls.py:14: objdump = args[0] Maybe also do "assert len(args) == ...
9 years, 8 months ago (2011-04-13 20:32:30 UTC) #2
Roland McGrath
Did requested cosmetic improvements.
9 years, 8 months ago (2011-04-13 21:12:12 UTC) #3
robertm
one more cosmetic thing ;-) (applies to three files) http://codereview.chromium.org/6839002/diff/3002/src/shared/platform/nacl.scons File src/shared/platform/nacl.scons (right): http://codereview.chromium.org/6839002/diff/3002/src/shared/platform/nacl.scons#newcode9 src/shared/platform/nacl.scons:9: ...
9 years, 8 months ago (2011-04-13 21:21:04 UTC) #4
Mark Seaborn
http://codereview.chromium.org/6839002/diff/3002/src/untrusted/irt/check_tls.py File src/untrusted/irt/check_tls.py (right): http://codereview.chromium.org/6839002/diff/3002/src/untrusted/irt/check_tls.py#newcode21 src/untrusted/irt/check_tls.py:21: print 'This looks like ann x86-32 direct TLS use.' ...
9 years, 8 months ago (2011-04-13 21:24:41 UTC) #5
Roland McGrath
Done.
9 years, 8 months ago (2011-04-13 21:38:54 UTC) #6
Mark Seaborn
LGTM
9 years, 8 months ago (2011-04-13 21:45:04 UTC) #7
Mark Seaborn
http://codereview.chromium.org/6839002/diff/15/src/untrusted/irt/nacl.scons File src/untrusted/irt/nacl.scons (right): http://codereview.chromium.org/6839002/diff/15/src/untrusted/irt/nacl.scons#newcode70 src/untrusted/irt/nacl.scons:70: if env.Bit('build_x86_32'): Actually this is not right: it needs ...
9 years, 8 months ago (2011-04-13 23:27:33 UTC) #8
Roland McGrath
9 years, 8 months ago (2011-04-14 00:35:24 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698