Chromium Code Reviews| 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..ce0f136e5fd931e403fde9c73d196c1b81be119c |
| --- /dev/null |
| +++ b/src/untrusted/irt/frame_info_stubs.c |
| @@ -0,0 +1,16 @@ |
| +/* |
| + * 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 |
|
jvoung (off chromium)
2015/03/19 19:38:56
nit: Usual NaCl style for multi-line C comments is
Derek Schuff
2015/03/19 19:47:58
Done.
|
| + * 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) {} |
| +void __deregister_frame_info(const void *begin) {} |