Linux: consolidate dup2 implementation
[glibc.git] / sysdeps / arm / unwind-dw2-fde-glibc.c
blob8f92587b860edf27758337e288f604cef758ba23
1 /* Dummy exception handling and frame unwind runtime interface routines.
2 Copyright (C) 2004-2022 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
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.
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.
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/>. */
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. */
26 #include <stdlib.h>
27 #include <unwind.h>
28 #include <unwind-dw2-fde.h>
30 /* These may be called from startup code, but don't need to do
31 anything. */
33 void __register_frame_info_bases (void *a1, struct object *a2,
34 void *a3, void *a4)
38 void __register_frame_info (void *a1, struct object *a2)
42 void __register_frame (void *a1)
46 void __register_frame_info_table_bases (void *a1, struct object *a2,
47 void *a3, void *a4)
51 void __register_frame_info_table (void *a1, struct object *a2)
55 void __register_frame_table (void *a1)
59 void *__deregister_frame_info (void *a1)
61 return NULL;
64 void *__deregister_frame_info_bases (void *a1)
66 return NULL;
69 void __deregister_frame (void *a1)
73 /* This should not be called. */
75 fde *
76 _Unwind_Find_FDE (void *a1, struct dwarf_eh_bases *a2)
78 abort ();