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

Side by Side Diff: trunk/src/native_client/src/trusted/service_runtime/nacl.scons

Issue 71933002: Revert 12382 "Deploy new x86 binutils" (Closed) Base URL: svn://svn.chromium.org/native_client/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 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 Import('env') 6 Import('env')
7 7
8 # All tests below involve native assembler 8 # All tests below involve native assembler
9 9
10 HALT_SLED_SIZE=32 10 HALT_SLED_SIZE=32
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 asm_env.PNaClForceNative() 49 asm_env.PNaClForceNative()
50 asm_env.Append(ASPPFLAGS=['-DPNACL_AS=1']) 50 asm_env.Append(ASPPFLAGS=['-DPNACL_AS=1'])
51 # On Windows, assembly pre-preprocessing uses $CCCOM instead of $ASPPCOM, 51 # On Windows, assembly pre-preprocessing uses $CCCOM instead of $ASPPCOM,
52 # so we need to set PNACL_AS=1 in CCFLAGS as well. 52 # so we need to set PNACL_AS=1 in CCFLAGS as well.
53 asm_env.Append(CCFLAGS=['-DPNACL_AS=1']) 53 asm_env.Append(CCFLAGS=['-DPNACL_AS=1'])
54 54
55 link_cmd = ('${LD} -static -e _start ${TEXT_START} ${RO_START} ${RW_START}' + 55 link_cmd = ('${LD} -static -e _start ${TEXT_START} ${RO_START} ${RW_START}' +
56 ' -o ${TARGET} ${SOURCES}') 56 ' -o ${TARGET} ${SOURCES}')
57 57
58 if env.Bit('target_x86_32'): 58 if env.Bit('target_x86_32'):
59 link_cmd += ' -melf_i386_nacl' 59 link_cmd += ' -melf_nacl'
60 elif env.Bit('target_x86_64'): 60 elif env.Bit('target_x86_64'):
61 link_cmd += ' -melf_x86_64_nacl' 61 link_cmd += ' -melf64_nacl'
62 elif env.Bit('target_arm'): 62 elif env.Bit('target_arm'):
63 link_cmd += ' -marmelf_nacl' 63 link_cmd += ' -marmelf_nacl'
64 elif env.Bit('target_mips32'): 64 elif env.Bit('target_mips32'):
65 link_cmd += ' -mmipselelf_nacl' 65 link_cmd += ' -mmipselelf_nacl'
66 else: 66 else:
67 raise Exception('unknown architecture') 67 raise Exception('unknown architecture')
68 68
69 asm_env['LINKCOM'] = link_cmd 69 asm_env['LINKCOM'] = link_cmd
70 70
71 asm_env.Append(CPPDEFINES = [ 71 asm_env.Append(CPPDEFINES = [
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 else: 189 else:
190 expected_exit_status = 0 190 expected_exit_status = 0
191 191
192 node = env.CommandSelLdrTestNacl(base_name + '.out', nexe, 192 node = env.CommandSelLdrTestNacl(base_name + '.out', nexe,
193 exit_status=expected_exit_status) 193 exit_status=expected_exit_status)
194 194
195 env.AddNodeToTestSuite(node, 195 env.AddNodeToTestSuite(node,
196 ['small_tests', 'sel_ldr_sled_tests', 196 ['small_tests', 'sel_ldr_sled_tests',
197 'nonpexe_tests'], 197 'nonpexe_tests'],
198 'run_' + base_name) 198 'run_' + base_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698