OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../../build/common_untrusted.gypi', | 7 '../../build/common_untrusted.gypi', |
8 ], | 8 ], |
9 'conditions': [ | 9 'conditions': [ |
10 ['disable_nacl==0 and disable_nacl_untrusted==0', { | 10 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 '-lgpu_ipc_untrusted', | 107 '-lgpu_ipc_untrusted', |
108 '-lipc_untrusted', | 108 '-lipc_untrusted', |
109 '-lbase_untrusted', | 109 '-lbase_untrusted', |
110 '-lshared_memory_support_untrusted', | 110 '-lshared_memory_support_untrusted', |
111 '-lsrpc', | 111 '-lsrpc', |
112 '-limc_syscalls', | 112 '-limc_syscalls', |
113 '-lplatform', | 113 '-lplatform', |
114 '-lgio', | 114 '-lgio', |
115 '-Wl,--end-group', | 115 '-Wl,--end-group', |
116 '-lm', | 116 '-lm', |
117 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
118 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
117 ], | 119 ], |
118 # See http://code.google.com/p/nativeclient/issues/detail?id=2691. | 120 # See http://code.google.com/p/nativeclient/issues/detail?id=2691. |
Derek Schuff
2013/03/28 17:40:22
this comment can go away now.
Sam Clegg
2013/03/28 23:08:37
Done.
| |
119 # The PNaCl linker (gold) does not implement the "-Ttext-segment" | 121 # The PNaCl linker (gold) does not implement the "-Ttext-segment" |
120 # option. However, with the linker for x86, the "-Ttext" option | 122 # option. However, with the linker for x86, the "-Ttext" option |
121 # does not affect the executable's base address. | 123 # does not affect the executable's base address. |
122 # TODO(olonho): simplify flags handling and avoid duplication | 124 # TODO(olonho): simplify flags handling and avoid duplication |
123 # with NaCl logic. | 125 # with NaCl logic. |
124 'conditions': [ | 126 'conditions': [ |
125 ['target_arch!="arm"', | 127 ['target_arch=="arm"', |
126 { | 128 { # TODO(mcgrathr): This knowledge really belongs in |
Derek Schuff
2013/03/28 17:40:22
If you're going to do this CL atomically with a na
Sam Clegg
2013/03/28 23:08:37
Removed compile_flags.
| |
127 'link_flags': [ | |
128 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
129 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
130 ] | |
131 }, { # target_arch == "arm" | |
132 # TODO(mcgrathr): This knowledge really belongs in | |
133 # native_client/src/untrusted/irt/irt.gyp instead of here. | 129 # native_client/src/untrusted/irt/irt.gyp instead of here. |
134 # But that builds libirt_browser.a as bitcode, so a native | 130 # But that builds libirt_browser.a as bitcode, so a native |
135 # object does not fit happily there. | 131 # object does not fit happily there. |
136 'sources': [ | 132 'sources': [ |
137 '../../native_client/src/untrusted/irt/aeabi_read_tp.S', | 133 '../../native_client/src/untrusted/irt/aeabi_read_tp.S', |
138 ], | 134 ], |
139 'link_flags': [ | 135 'compile_flags': [ |
140 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | 136 '-mtp=soft' |
141 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
142 '--pnacl-allow-native', | |
143 '-arch', 'arm', | |
144 '-Wt,-mtls-use-call', | |
145 '-Wl,--pnacl-irt-link', | |
146 ], | 137 ], |
147 }, | 138 }, |
148 ], | 139 ], |
149 # untrusted.gypi and build_nexe.py currently build | 140 # untrusted.gypi and build_nexe.py currently build |
150 # both x86-32 and x86-64 whenever target_arch is some | 141 # both x86-32 and x86-64 whenever target_arch is some |
151 # flavor of x86. However, on non-windows platforms | 142 # flavor of x86. However, on non-windows platforms |
152 # we only need one architecture. | 143 # we only need one architecture. |
153 ['OS!="win" and target_arch=="ia32"', | 144 ['OS!="win" and target_arch=="ia32"', |
154 { | 145 { |
155 'enable_x86_64': 0 | 146 'enable_x86_64': 0 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', | 298 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', |
308 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', | 299 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', |
309 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', | 300 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', |
310 ], | 301 ], |
311 }, | 302 }, |
312 'dependencies': [ | 303 'dependencies': [ |
313 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted', | 304 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted', |
314 '../ppapi_ipc_untrusted.gyp:ppapi_ipc_untrusted', | 305 '../ppapi_ipc_untrusted.gyp:ppapi_ipc_untrusted', |
315 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted', | 306 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted', |
316 '../../gpu/command_buffer/command_buffer_untrusted.gyp:gles2_utils_u ntrusted', | 307 '../../gpu/command_buffer/command_buffer_untrusted.gyp:gles2_utils_u ntrusted', |
317 '../../gpu/gpu_untrusted.gyp:command_buffer_client_untrusted', | 308 '../../gpu/gpu_untrusted.gyp:command_buffer_client_untrusted', |
Derek Schuff
2013/03/28 17:54:33
If you're going to use -mtp=soft just where it's a
Sam Clegg
2013/03/28 23:08:37
I went for consistency with X86 which it to use in
| |
318 '../../gpu/gpu_untrusted.gyp:command_buffer_common_untrusted', | 309 '../../gpu/gpu_untrusted.gyp:command_buffer_common_untrusted', |
319 '../../gpu/gpu_untrusted.gyp:gles2_implementation_untrusted', | 310 '../../gpu/gpu_untrusted.gyp:gles2_implementation_untrusted', |
320 '../../gpu/gpu_untrusted.gyp:gles2_cmd_helper_untrusted', | 311 '../../gpu/gpu_untrusted.gyp:gles2_cmd_helper_untrusted', |
321 '../../gpu/gpu_untrusted.gyp:gpu_ipc_untrusted', | 312 '../../gpu/gpu_untrusted.gyp:gpu_ipc_untrusted', |
322 '../../components/tracing_untrusted.gyp:tracing_untrusted', | 313 '../../components/tracing_untrusted.gyp:tracing_untrusted', |
323 '../../ipc/ipc_untrusted.gyp:ipc_untrusted', | 314 '../../ipc/ipc_untrusted.gyp:ipc_untrusted', |
324 '../../base/base_untrusted.gyp:base_untrusted', | 315 '../../base/base_untrusted.gyp:base_untrusted', |
325 '../../media/media_untrusted.gyp:shared_memory_support_untrusted', | 316 '../../media/media_untrusted.gyp:shared_memory_support_untrusted', |
326 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | 317 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', |
327 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 318 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
328 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 319 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
329 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 320 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
330 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 321 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
331 ], | 322 ], |
332 }, | 323 }, |
333 ], | 324 ], |
334 }], | 325 }], |
335 ], | 326 ], |
336 } | 327 } |
OLD | NEW |