1 | /* |
---|
2 | * COPYRIGHT (c) 2016 Chris Johns <chrisj@rtems.org> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | /** |
---|
9 | * @file |
---|
10 | * |
---|
11 | * @ingroup rtems_rtl |
---|
12 | * |
---|
13 | * @brief RTEMS Run-Time Linker Unwind Support. |
---|
14 | */ |
---|
15 | |
---|
16 | #if !defined (_RTEMS_RTL_UNWIND_H_) |
---|
17 | #define _RTEMS_RTL_UNWIND_H_ |
---|
18 | |
---|
19 | #include "rtl-elf.h" |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif /* __cplusplus */ |
---|
24 | |
---|
25 | /** |
---|
26 | * Architecture specific handler to check if a section contains exception |
---|
27 | * handler data.. |
---|
28 | * |
---|
29 | * @param obj The object file. |
---|
30 | * @param name The section's name. |
---|
31 | * @param uint32 flags The object file's flags. |
---|
32 | * @retval true The section contains unwind information. |
---|
33 | * @retval false The section does not contain unwind information. |
---|
34 | */ |
---|
35 | bool rtems_rtl_elf_unwind_parse (const rtems_rtl_obj_t* obj, |
---|
36 | const char* name, |
---|
37 | uint32_t flags); |
---|
38 | |
---|
39 | /** |
---|
40 | * Architecture specific handler to add an object file's unwind information to |
---|
41 | * the base image. |
---|
42 | * |
---|
43 | * @param obj The object file. |
---|
44 | * @retval true The unwind information has been registered. |
---|
45 | * @retval false The unwind information could not be registered. |
---|
46 | */ |
---|
47 | bool rtems_rtl_elf_unwind_register (rtems_rtl_obj_t* obj); |
---|
48 | |
---|
49 | /** |
---|
50 | * Architecture specific handler to remove an object file's unwind information |
---|
51 | * from the base image. |
---|
52 | * |
---|
53 | * @param obj The object file. |
---|
54 | * @retval true The unwind information has been deregistered. |
---|
55 | * @retval false The unwind information could not be deregistered. |
---|
56 | */ |
---|
57 | bool rtems_rtl_elf_unwind_deregister (rtems_rtl_obj_t* obj); |
---|
58 | |
---|
59 | #ifdef __cplusplus |
---|
60 | } |
---|
61 | #endif /* __cplusplus */ |
---|
62 | |
---|
63 | #endif |
---|