Index: src/native_client/src/trusted/service_runtime/sel_ldr.h |
diff --git a/src/native_client/src/trusted/service_runtime/sel_ldr.h b/src/native_client/src/trusted/service_runtime/sel_ldr.h |
index 374e4d9d91c8e95ed452b99e8e52d5beb1103b86..7c69692a139004b75811d35d3c6f958f329b96f1 100644 |
--- a/src/native_client/src/trusted/service_runtime/sel_ldr.h |
+++ b/src/native_client/src/trusted/service_runtime/sel_ldr.h |
@@ -247,6 +247,12 @@ struct NaClApp { |
int use_shm_for_dynamic_text; |
struct NaClDesc *text_shm; |
struct NaClMutex dynamic_load_mutex; |
+ /* |
+ * This records which pages in text_shm have been allocated. When a |
+ * page is allocated, it is filled with halt instructions and then |
+ * made executable by untrusted code. |
+ */ |
+ uint8_t *dynamic_page_bitmap; |
/* |
* The array of dynamic_regions is maintained in sorted order |