| Index: src/trusted/validator_x86/build.scons
|
| ===================================================================
|
| --- src/trusted/validator_x86/build.scons (revision 4944)
|
| +++ src/trusted/validator_x86/build.scons (working copy)
|
| @@ -118,23 +118,25 @@
|
|
|
| # Segment register validator library
|
| NCVALIDATE_SOURCES = ['nacl_cpuid.c',
|
| - 'ncdecode.c',
|
| - 'ncinstbuffer.c',
|
| - 'nc_segment.c',
|
| - 'nc_inst_iter.c',
|
| - 'nc_inst_state.c',
|
| - 'nc_inst_trans.c',
|
| - 'ncop_exps.c',
|
| - 'ncvalidate.c',
|
| - 'nccopycode.c',
|
| - 'nccopycode_stores.S'
|
| - ]
|
| -if env.Bit('target_x86_64'):
|
| - NCVALIDATE_SOURCES = NCVALIDATE_SOURCES + ncopcode_desc_o
|
| + 'ncdecode.c',
|
| + 'ncinstbuffer.c',
|
| + 'nc_segment.c',
|
| + 'nc_inst_iter.c',
|
| + 'nc_inst_state.c',
|
| + 'nc_inst_trans.c',
|
| + 'ncop_exps.c',
|
| + 'ncvalidate.c',
|
| + 'nccopycode.c',
|
| + 'nccopycode_stores.S'
|
| + ]
|
|
|
| +NCVALIDATE_SOURCES = NCVALIDATE_SOURCES + ncopcode_desc_o
|
| +
|
| env.ComponentLibrary('ncvalidate', NCVALIDATE_SOURCES)
|
|
|
| -# SFI validator library
|
| +# SFI validator library.
|
| +# Note: When loading this library, follow it with ncvalidate, since
|
| +# it contains many routines and constants needed by this library.
|
| env.ComponentLibrary('ncvalidate_sfi',
|
| ['ncvalidate_iter.c',
|
| 'ncvalidator_registry.c',
|
| @@ -216,7 +218,6 @@
|
| 'ncdis_util',
|
| 'utils',
|
| 'ncvalidate',
|
| - 'ncopcode_utils',
|
| 'nchelper',
|
| 'ncdis_util',
|
| 'platform',
|
| @@ -359,7 +360,6 @@
|
| 'ncdis_util',
|
| 'ncvalidate_sfi',
|
| 'ncvalidate',
|
| - 'ncopcode_utils',
|
| 'nchelper',
|
| 'platform',
|
| 'gio',
|
| @@ -540,13 +540,18 @@
|
|
|
| # List of (unit) test file prefixes to run unit tests on.
|
| gtest_sources = ['NCRemainingMemory',
|
| - 'NCInstBytes']
|
| + 'NCInstBytes',
|
| + 'nc_inst_state_']
|
|
|
| for source in gtest_sources:
|
| test_exe = gtest_env.ComponentProgram(
|
| 'x86_validator_tests' + source,
|
| [source+'Tests.cc'],
|
| - EXTRA_LIBS=['gtest', 'ncvalidate']);
|
| + EXTRA_LIBS=['gtest',
|
| + 'ncvalidate',
|
| + 'platform',
|
| + 'gio',
|
| + ]);
|
| test_node = gtest_env.CommandTest(
|
| source+'Tests.out',
|
| command=[test_exe])
|
|
|