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

Unified Diff: src/tools/validator_tools/ncstubout.c

Issue 10116004: Eliminate bundle_size parameter from validator interface. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Merge Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: src/tools/validator_tools/ncstubout.c
diff --git a/src/tools/validator_tools/ncstubout.c b/src/tools/validator_tools/ncstubout.c
index a5f4b22147ed68020a305ef4c898644ddc0c33c9..81ca952a34bcdfac4ce7706d08475f936e66ffb0 100644
--- a/src/tools/validator_tools/ncstubout.c
+++ b/src/tools/validator_tools/ncstubout.c
@@ -27,7 +27,6 @@
static Bool FixUpSection(uintptr_t load_address,
unsigned char *code,
size_t code_size) {
- int bundle_size = 32;
enum NaClSBKind sb_kind = NACL_SB_DEFAULT;
NaClValidationStatus status;
NaClCPUFeatures cpu_features;
@@ -39,7 +38,7 @@ static Bool FixUpSection(uintptr_t load_address,
status = NACL_SUBARCH_NAME(ApplyValidator,
NACL_TARGET_ARCH,
NACL_TARGET_SUBARCH)
- (sb_kind, load_address, code, code_size, bundle_size,
+ (sb_kind, load_address, code, code_size,
/* stubout_mode= */ TRUE, /* readonly_text= */ FALSE,
&cpu_features, NULL);
if (status == NaClValidationSucceeded) {
@@ -50,7 +49,7 @@ static Bool FixUpSection(uintptr_t load_address,
status = NACL_SUBARCH_NAME(ApplyValidatorVerbosely,
NACL_TARGET_ARCH,
NACL_TARGET_SUBARCH)
- (sb_kind, load_address, code, code_size, bundle_size, &cpu_features);
+ (sb_kind, load_address, code, code_size, &cpu_features);
}
switch (status) {
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_validate_image.c » ('j') | src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698