OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 | 6 |
7 Import('env') | 7 Import('env') |
8 | 8 |
9 # Since the integrated runtime will be built with newlib, | 9 # Since the integrated runtime will be built with newlib, |
10 # there's no need to build this module against glibc. | 10 # there's no need to build this module against glibc. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 irt_library = blob_env.ComponentProgram( | 60 irt_library = blob_env.ComponentProgram( |
61 'irt.nexe', files, | 61 'irt.nexe', files, |
62 EXTRA_LIBS=['ppruntime', | 62 EXTRA_LIBS=['ppruntime', |
63 'srpc', | 63 'srpc', |
64 'imc', | 64 'imc', |
65 'platform', | 65 'platform', |
66 'gio', | 66 'gio', |
67 'pthread', | 67 'pthread', |
68 'm']) | 68 'm']) |
69 | 69 |
70 if env.Bit('build_x86_32'): | 70 if env.Bit('build_x86_32') and not env.Bit('bitcode'): |
71 # Make sure that the linked IRT nexe never uses TLS via %gs access. | 71 # Make sure that the linked IRT nexe never uses TLS via %gs access. |
72 # All IRT code must avoid direct use of the TLS ABI register, which | 72 # All IRT code must avoid direct use of the TLS ABI register, which |
73 # is reserved for user TLS. Instead, ensure all TLS accesses use a | 73 # is reserved for user TLS. Instead, ensure all TLS accesses use a |
74 # call to __nacl_read_tp, which the IRT code overrides to segregate | 74 # call to __nacl_read_tp, which the IRT code overrides to segregate |
75 # IRT-private TLS from user TLS. | 75 # IRT-private TLS from user TLS. |
76 node = env.CommandTest('irt_tls_test.out', | 76 node = env.CommandTest('irt_tls_test.out', |
77 ['${PYTHON}', env.File('check_tls.py'), | 77 ['${PYTHON}', env.File('check_tls.py'), |
78 '${OBJDUMP}', irt_library]) | 78 '${OBJDUMP}', irt_library]) |
79 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_tls_test') | 79 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_tls_test') |
OLD | NEW |