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

Unified Diff: src/untrusted/irt/nacl.scons

Issue 140653005: Adds tls_edit utility which patches irt_core.nexe's TLS usage. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: This patch compiles in the tls offsets again instead of relying on tls_edit Created 6 years, 11 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/untrusted/irt/nacl.scons
diff --git a/src/untrusted/irt/nacl.scons b/src/untrusted/irt/nacl.scons
index df60f369d98e9270bff9abc222110c10103981e2..39bf768263774f0975cf45931756d18663c644f3 100644
--- a/src/untrusted/irt/nacl.scons
+++ b/src/untrusted/irt/nacl.scons
@@ -92,8 +92,28 @@ irt_libs = ['srpc',
'm',
]
-irt_core_library = blob_env.ComponentProgram(
- 'irt_core', irt_support_objs + irt_nonbrowser, EXTRA_LIBS=irt_libs)
+irt_core_raw = blob_env.ComponentProgram(
+ 'irt_core_raw', irt_support_objs + irt_nonbrowser, EXTRA_LIBS=irt_libs)
+
+# Compile this program using the host environment instead of the target
+tls_edit_env = env['BUILD_ENV']
+tls_edit_exe = tls_edit_env.ComponentProgram(
+ 'tls_edit',
+ 'tls_edit.c',
+ EXTRA_LIBS=['rdfa_validator', 'platform'])
+
+tls_edit_library = tls_edit_env.Install('${STAGING_DIR}', tls_edit_exe)
+
+irt_core_nexe = blob_env.Command(
+ 'irt_core.nexe',
+ [tls_edit_library, irt_core_raw],
+ '${SOURCES} ${TARGET}'
+ )
+
+irt_core_library = blob_env.Install('${STAGING_DIR}', irt_core_nexe)
+blob_env.Alias('irt_core', irt_core_library)
+blob_env.ComponentProgramAlias(irt_core_library)
+
env.SDKInstallBin('irt_core.nexe', irt_core_library)
# TODO(mcgrathr): these should be installed, but scons is a mystery

Powered by Google App Engine
This is Rietveld 408576698