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

Side by Side Diff: src/trusted/platform_qualify/build.scons

Issue 3539011: Enable check for DEP / NX page protection (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Modify windows check to use Noel's signal interface Created 10 years, 2 months 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 2008 The Native Client Authors. All rights reserved. 2 # Copyright 2008 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can 3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file. 4 # be found in the LICENSE file.
5 5
6 Import('env') 6 Import('env')
7 7
8 8
9 pql_inputs = []; 9 pql_inputs = [];
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 # assembly code. (Issue 440) 42 # assembly code. (Issue 440)
43 if env['TARGET_SUBARCH'] == '64' and env.Bit('windows'): 43 if env['TARGET_SUBARCH'] == '64' and env.Bit('windows'):
44 env.Append(LIBS = ['platform_qual_lib', 44 env.Append(LIBS = ['platform_qual_lib',
45 'ncvalidate']) 45 'ncvalidate'])
46 else: 46 else:
47 nacl_vcpuid = vcpuid_env.ComponentLibrary('vcpuid', 'arch/x86/vcpuid.c') 47 nacl_vcpuid = vcpuid_env.ComponentLibrary('vcpuid', 'arch/x86/vcpuid.c')
48 env.Append(LIBS = ['vcpuid']) 48 env.Append(LIBS = ['vcpuid'])
49 49
50 if env['TARGET_SUBARCH'] == '64': 50 if env['TARGET_SUBARCH'] == '64':
51 # Compile x86-64 primitives for verifying NX functionality 51 # Compile x86-64 primitives for verifying NX functionality
52 pql_inputs += ['arch/x86_64/nacl_dep_qualify.c'] 52 pql_inputs += ['arch/x86_64/nacl_dep_qualify_arch.c']
53 elif env['TARGET_SUBARCH'] == '32': 53 elif env['TARGET_SUBARCH'] == '32':
54 pql_inputs += ['arch/x86_32/nacl_dep_qualify.c'] 54 pql_inputs += ['arch/x86_32/nacl_dep_qualify_arch.c']
55 55
56 # TODO(bradchen): re-enable when issue 440 is fixed 56 # TODO(bradchen): re-enable when issue 440 is fixed
57 # env.ComponentProgram('platform_qual_test', 57 # env.ComponentProgram('platform_qual_test',
58 # 'arch/x86/platform_qual_test.c') 58 # 'arch/x86/platform_qual_test.c')
59 env.ComponentProgram('nacl_cpuwhitelist_test', 59 env.ComponentProgram('nacl_cpuwhitelist_test',
60 'arch/x86/nacl_cpuwhitelist_test.c') 60 'arch/x86/nacl_cpuwhitelist_test.c')
61 61
62 62
63 63
64 if env['BUILD_ARCHITECTURE'] == 'arm': 64 if env['BUILD_ARCHITECTURE'] == 'arm':
65 # Compile ARM primitives for checking XN functionality 65 # Compile ARM primitives for checking XN functionality
66 pql_inputs += ['arch/arm/nacl_dep_qualify.c'] 66 pql_inputs += ['arch/arm/nacl_dep_qualify_arch.c']
67 67
68 68
69 # ---------------------------------------------------------- 69 # ----------------------------------------------------------
70 # 70 #
71 # ---------------------------------------------------------- 71 # ----------------------------------------------------------
72 env.DualLibrary('platform_qual_lib', pql_inputs) 72 env.DualLibrary('platform_qual_lib', pql_inputs)
73 73
74 74
75 # These tests use assembly which seem to make the coverage instrumentation 75 # These tests use assembly which seem to make the coverage instrumentation
76 # on windows unhappy. Disable them for now on coverage for windows. 76 # on windows unhappy. Disable them for now on coverage for windows.
77 # TODO(bradnelson): figure out a way to get coverage working for these. 77 # TODO(bradnelson): figure out a way to get coverage working for these.
78 if env.Bit('windows') and env.get('COVERAGE_ENABLED'): 78 if env.Bit('windows') and env.get('COVERAGE_ENABLED'):
79 Return() 79 Return()
80
OLDNEW
« no previous file with comments | « src/trusted/platform_qualify/arch/x86_64/nacl_dep_qualify_arch.c ('k') | src/trusted/platform_qualify/platform_qual_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698