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

Unified Diff: src/untrusted/irt/frame_info_stubs.c

Issue 940993003: Build the IRT with nacl-clang for x86 (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: review 2 Created 5 years, 9 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/frame_info_stubs.c
diff --git a/src/untrusted/irt/frame_info_stubs.c b/src/untrusted/irt/frame_info_stubs.c
new file mode 100644
index 0000000000000000000000000000000000000000..a0849a487dfc0ed687e209ebe4b51a02e51b2a5b
--- /dev/null
+++ b/src/untrusted/irt/frame_info_stubs.c
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2015 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.
+ */
+
+/*
+ * On x86-64 we build the IRT with sandbox base-address hiding. This means that
Mark Seaborn 2015/03/19 20:54:48 What's the plan for making sure this doesn't regre
Derek Schuff 2015/03/19 21:28:30 That sounds reasonable. For simple things like cat
Derek Schuff 2015/03/24 01:27:19 I've started a CL with a simple objdump-based lint
Mark Seaborn 2015/03/25 08:37:00 Thanks, that would be useful. It's not as good as
+ * all of its components must be built with LLVM's assembler. Currently the
+ * unwinder library is built with nacl-gcc and so does not use base address
+ * hiding. The IRT does not use exceptions, so we do not actually need the
+ * unwinder at all. To prevent it from being linked into the IRT, we provide
+ * stub implementations of its functions that are referenced from crtbegin.c.
+ */
+
+void __register_frame_info(void *begin, void *ob) {}
Mark Seaborn 2015/03/19 20:54:48 When linking nexes with nacl-clang, do we always u
Derek Schuff 2015/03/19 21:28:30 Yes; there is currently only one variant, pnacl/su
+void __deregister_frame_info(const void *begin) {}

Powered by Google App Engine
This is Rietveld 408576698