| Index: src/tools/validator_tools/ncstubout.c
|
| diff --git a/src/tools/validator_tools/ncstubout.c b/src/tools/validator_tools/ncstubout.c
|
| index e2ae7e15874b63965b46817127ffe35be9ea8538..471edd0382aaeaa273145768f89063f5b147f795 100644
|
| --- a/src/tools/validator_tools/ncstubout.c
|
| +++ b/src/tools/validator_tools/ncstubout.c
|
| @@ -29,15 +29,14 @@ static Bool FixUpSection(uintptr_t load_address,
|
| size_t code_size) {
|
| NaClValidationStatus status;
|
| NaClCPUFeatures cpu_features;
|
| + struct NaClValidatorInterface *validator;
|
| + NaClSelectValidator(&validator);
|
| /* Pretend that the CPU supports every feature so that we will only stub out
|
| * instructions that NaCl will never allow under any condition.
|
| */
|
| NaClSetAllCPUFeatures(&cpu_features);
|
|
|
| - status = NACL_SUBARCH_NAME(ApplyValidator,
|
| - NACL_TARGET_ARCH,
|
| - NACL_TARGET_SUBARCH)
|
| - (load_address, code, code_size,
|
| + status = validator->Validate(load_address, code, code_size,
|
| /* stubout_mode= */ TRUE, /* readonly_text= */ FALSE,
|
| &cpu_features, NULL);
|
| if (status == NaClValidationSucceeded) {
|
|
|