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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "native_client/src/include/concurrency_ops.h" 9 #include "native_client/src/include/concurrency_ops.h"
10 #include "native_client/src/include/nacl_platform.h" 10 #include "native_client/src/include/nacl_platform.h"
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 /* 970 /*
971 * Still waiting for some threads to report in... 971 * Still waiting for some threads to report in...
972 */ 972 */
973 retval = -NACL_ABI_EAGAIN; 973 retval = -NACL_ABI_EAGAIN;
974 } 974 }
975 975
976 cleanup_unlock: 976 cleanup_unlock:
977 NaClXMutexUnlock(&nap->dynamic_load_mutex); 977 NaClXMutexUnlock(&nap->dynamic_load_mutex);
978 return retval; 978 return retval;
979 } 979 }
980
981 int32_t NaClHasSegmentGapForDyncode(struct NaClApp *nap) {
982 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.
983 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698