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

Unified Diff: src/untrusted/nacl/pthread_initialize_minimal_using_ldso.c

Issue 22859030: Remove wrapper-link-and-translate from PNaCl and pnacl_shared_newlib from SCons. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: one more reference Created 7 years, 4 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
« no previous file with comments | « src/untrusted/nacl/nacl.scons ('k') | src/untrusted/nacl/tls_using_ldso.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/pthread_initialize_minimal_using_ldso.c
diff --git a/src/untrusted/nacl/pthread_initialize_minimal_using_ldso.c b/src/untrusted/nacl/pthread_initialize_minimal_using_ldso.c
deleted file mode 100644
index 290d58a744df73531bb4dfd8b8f605e4456553a3..0000000000000000000000000000000000000000
--- a/src/untrusted/nacl/pthread_initialize_minimal_using_ldso.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include <unistd.h>
-
-#include "native_client/src/untrusted/nacl/nacl_irt.h"
-#include "native_client/src/untrusted/nacl/nacl_thread.h"
-#include "native_client/src/untrusted/nacl/tls.h"
-#include "native_client/src/untrusted/nacl/tls_params.h"
-
-/*
- * This initialization happens early in startup with or without libpthread.
- * It must make it safe for vanilla newlib code to run.
- */
-void __pthread_initialize_minimal(size_t tdb_size) {
- /*
- * ld.so does most of the work for us, e.g.
- * allocating and initialzing the tls area.
- * For x86 we still need put the tdb in a
- * state which our libpthread expects.
- * This relies heavily on our tdb being "compatible" with
- * glibc's tdb.
- * C.f src/untrusted/pthread/pthread_types.h
- */
-
- /*
- * the extra initialization is only needed for x86
- */
- if (__nacl_tp_tdb_offset(tdb_size) == 0) {
- char *tp = __nacl_read_tp();
- void *tdb = (char *) tp + __nacl_tp_tdb_offset(tdb_size);
- *(void **) tdb = tdb;
- }
-
- /*
- * Initialize newlib's thread-specific pointer.
- */
- __newlib_thread_init();
-}
« no previous file with comments | « src/untrusted/nacl/nacl.scons ('k') | src/untrusted/nacl/tls_using_ldso.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698