| OLD | NEW |
| 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 /* These weak stubs are provided for bitcode linking, | 7 /* These weak stubs are provided for bitcode linking, |
| 8 * so that they are defined symbols. | 8 * so that they are defined symbols. |
| 9 * | |
| 10 * They will be overridden by the real functions in | |
| 11 * libgcc_eh / libgcc_s / libcrt_platform | |
| 12 * | |
| 13 * for more information on these functions see: | |
| 14 * http://www.nongnu.org/libunwind/docs.html | |
| 15 * NOTE: libunwind uses slightly different function names: | |
| 16 * e.g. _Unwind_DeleteException -> __libunwind_Unwind_DeleteException | |
| 17 * | |
| 18 * These two functions are pnacl specific: | |
| 19 * _Unwind_PNaClSetResult0 | |
| 20 * _Unwind_PNaClSetResult1 | |
| 21 */ | 9 */ |
| 22 | 10 |
| 23 #define STUB(sym) void sym() { } | 11 #define STUB(sym) void sym() { } |
| 24 | 12 |
| 25 STUB(_Unwind_DeleteException) | |
| 26 STUB(_Unwind_GetRegionStart) | |
| 27 STUB(_Unwind_GetDataRelBase) | |
| 28 STUB(_Unwind_GetIP) | |
| 29 STUB(_Unwind_GetIPInfo) | |
| 30 STUB(_Unwind_GetTextRelBase) | |
| 31 STUB(_Unwind_GetLanguageSpecificData) | |
| 32 STUB(_Unwind_SetIP) | |
| 33 STUB(_Unwind_PNaClSetResult0) | |
| 34 STUB(_Unwind_PNaClSetResult1) | |
| 35 STUB(_Unwind_RaiseException) | |
| 36 STUB(_Unwind_Resume_or_Rethrow) | |
| 37 STUB(_Unwind_Resume) | |
| 38 STUB(_Unwind_GetCFA) | |
| 39 STUB(_Unwind_Backtrace) | |
| 40 | |
| 41 STUB(longjmp) | 13 STUB(longjmp) |
| 42 STUB(setjmp) | 14 STUB(setjmp) |
| 43 | 15 |
| OLD | NEW |