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

Unified Diff: src/trusted/service_runtime/nacl_text.c

Issue 10681005: Allow sel_ldr to continue without the IRT, when nexe doesn't have segment gap (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: simpler check? Created 8 years, 6 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/trusted/service_runtime/nacl_text.c
diff --git a/src/trusted/service_runtime/nacl_text.c b/src/trusted/service_runtime/nacl_text.c
index 3d060d2c0b711954c38c290b100ff5fbcdd058c3..b40428ba86df945e2edbeb22fcfcbbce2eddf241 100644
--- a/src/trusted/service_runtime/nacl_text.c
+++ b/src/trusted/service_runtime/nacl_text.c
@@ -977,3 +977,7 @@ int32_t NaClTextSysDyncode_Delete(struct NaClAppThread *natp,
NaClXMutexUnlock(&nap->dynamic_load_mutex);
return retval;
}
+
+int32_t NaClHasSegmentGapForDyncode(struct NaClApp *nap) {
+ return nap->dynamic_text_start != nap->dynamic_text_end;
Mark Seaborn 2012/06/28 22:05:11 I would suggest checking whether nap->text_shm is
jvoung (off chromium) 2012/06/28 22:41:56 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698