1 | /* Dummy exception handling and frame unwind runtime interface routines. |
2 | Copyright (C) 2004-2022 Free Software Foundation, Inc. |
3 | |
4 | This file is part of the GNU C Library. |
5 | |
6 | The GNU C Library is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU Lesser General Public |
8 | License as published by the Free Software Foundation; either |
9 | version 2.1 of the License, or (at your option) any later version. |
10 | |
11 | The GNU C Library is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Lesser General Public License for more details. |
15 | |
16 | You should have received a copy of the GNU Lesser General Public |
17 | License along with the GNU C Library. If not, see |
18 | <https://www.gnu.org/licenses/>. */ |
19 | |
20 | /* ARM uses setjmp-longjmp exceptions. However, previous versions of |
21 | GNU libc exported some DWARF-2 exception handling support routines. |
22 | They are not necessary, but older (or broken) configurations of GCC |
23 | will do so. Even though all references to these are weak, because |
24 | they refer to versioned symbols, they must be provided. */ |
25 | |
26 | #include <stdlib.h> |
27 | #include <unwind.h> |
28 | #include <unwind-dw2-fde.h> |
29 | |
30 | /* These may be called from startup code, but don't need to do |
31 | anything. */ |
32 | |
33 | void __register_frame_info_bases (void *a1, struct object *a2, |
34 | void *a3, void *a4) |
35 | { |
36 | } |
37 | |
38 | void __register_frame_info (void *a1, struct object *a2) |
39 | { |
40 | } |
41 | |
42 | void __register_frame (void *a1) |
43 | { |
44 | } |
45 | |
46 | void __register_frame_info_table_bases (void *a1, struct object *a2, |
47 | void *a3, void *a4) |
48 | { |
49 | } |
50 | |
51 | void __register_frame_info_table (void *a1, struct object *a2) |
52 | { |
53 | } |
54 | |
55 | void __register_frame_table (void *a1) |
56 | { |
57 | } |
58 | |
59 | void *__deregister_frame_info (void *a1) |
60 | { |
61 | return NULL; |
62 | } |
63 | |
64 | void *__deregister_frame_info_bases (void *a1) |
65 | { |
66 | return NULL; |
67 | } |
68 | |
69 | void __deregister_frame (void *a1) |
70 | { |
71 | } |
72 | |
73 | /* This should not be called. */ |
74 | |
75 | fde * |
76 | _Unwind_Find_FDE (void *a1, struct dwarf_eh_bases *a2) |
77 | { |
78 | abort (); |
79 | } |
80 | |