|
58 | 58 | #endif |
59 | 59 |
|
60 | 60 | // ptrauth_string_discriminator("unw_proc_info_t::handler") == 0x7405 |
61 | | - #define __ptrauth_unwind_personality_fn_disc 0x7405 |
| 61 | + #define __ptrauth_unwind_upi_handler_disc 0x7405 |
62 | 62 |
|
63 | | - #define __ptrauth_unwind_personality_fn \ |
64 | | - __ptrauth(ptrauth_key_function_pointer, 1, __ptrauth_unwind_personality_fn_disc) |
| 63 | + #define __ptrauth_unwind_upi_handler \ |
| 64 | + __ptrauth(ptrauth_key_function_pointer, 1, __ptrauth_unwind_upi_handler_disc) |
65 | 65 |
|
66 | | - #define __ptrauth_unwind_personality_fn_intptr \ |
67 | | - __unwind_ptrauth_restricted_intptr(ptrauth_key_function_pointer, 1, __ptrauth_unwind_personality_fn_disc) |
| 66 | + #define __ptrauth_unwind_upi_handler_intptr \ |
| 67 | + __unwind_ptrauth_restricted_intptr(ptrauth_key_function_pointer, 1,\ |
| 68 | + __ptrauth_unwind_upi_handler_disc) |
68 | 69 |
|
69 | 70 | // ptrauth_string_discriminator("unw_proc_info_t::start_ip") == 0xCA2C |
70 | | - #define __ptrauth_unwind_proc_startip \ |
| 71 | + #define __ptrauth_unwind_upi_startip \ |
71 | 72 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_independent_code, 1, 0xCA2C) |
72 | 73 |
|
73 | 74 | // ptrauth_string_discriminator("unw_proc_info_t::end_ip") == 0xE183 |
74 | | - #define __ptrauth_unwind_proc_endip \ |
| 75 | + #define __ptrauth_unwind_upi_endip \ |
75 | 76 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_independent_code, 1, 0xE183) |
76 | 77 |
|
77 | 78 | // ptrauth_string_discriminator("unw_proc_info_t::lsda") == 0x83DE |
78 | | - #define __ptrauth_unwind_proc_lsda \ |
| 79 | + #define __ptrauth_unwind_upi_lsda \ |
79 | 80 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x83DE) |
80 | 81 |
|
81 | 82 | // ptrauth_string_discriminator("unw_proc_info_t::flags") == 0x79A1 |
82 | | - #define __ptrauth_unwind_proc_flags \ |
| 83 | + #define __ptrauth_unwind_upi_flags \ |
83 | 84 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x79A1) |
84 | 85 |
|
85 | 86 | // ptrauth_string_discriminator("unw_proc_info_t::unwind_info") == 0xC20C |
86 | | - #define __ptrauth_unwind_proc_info \ |
| 87 | + #define __ptrauth_unwind_upi_info \ |
87 | 88 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0xC20C) |
88 | 89 |
|
89 | 90 | // ptrauth_string_discriminator("unw_proc_info_t::extra") == 0x03DF |
90 | | - #define __ptrauth_unwind_proc_extra \ |
| 91 | + #define __ptrauth_unwind_upi_extra \ |
91 | 92 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x03DF) |
92 | 93 |
|
93 | 94 | // ptrauth_string_discriminator("Registers_arm64::link_reg_t") == 0x8301 |
94 | | - #define __ptrauth_unwind_arm64_link_reg \ |
| 95 | + #define __ptrauth_unwind_registers_arm64_link_reg \ |
95 | 96 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_code, 1, 0x8301) |
96 | 97 |
|
97 | 98 | // ptrauth_string_discriminator("UnwindInfoSections::dso_base") == 0x4FF5 |
98 | | - #define __ptrauth_unwind_info_section_dso_base \ |
| 99 | + #define __ptrauth_unwind_uis_dso_base \ |
99 | 100 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x4FF5) |
100 | 101 |
|
101 | 102 | // ptrauth_string_discriminator("UnwindInfoSections::dwarf_section") == 0x4974 |
102 | | - #define __ptrauth_unwind_info_dwarf_section \ |
| 103 | + #define __ptrauth_unwind_uis_dwarf_section \ |
103 | 104 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x4974) |
104 | 105 |
|
105 | 106 | // ptrauth_string_discriminator("UnwindInfoSections::dwarf_section_length") == 0x2A9A |
106 | | - #define __ptrauth_unwind_info_dwarf_section_length \ |
| 107 | + #define __ptrauth_unwind_uis_dwarf_section_length \ |
107 | 108 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x2A9A) |
108 | 109 |
|
109 | 110 | // ptrauth_string_discriminator("UnwindInfoSections::compact_unwind_section") == 0xA27B |
110 | | - #define __ptrauth_unwind_info_compact_unwind_section \ |
| 111 | + #define __ptrauth_unwind_uis_compact_unwind_section \ |
111 | 112 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0xA27B) |
112 | 113 |
|
113 | 114 | // ptrauth_string_discriminator("UnwindInfoSections::compact_unwind_section_length") == 0x5D0A |
114 | | - #define __ptrauth_unwind_info_compact_unwind_section_length \ |
| 115 | + #define __ptrauth_unwind_uis_compact_unwind_section_length \ |
115 | 116 | __unwind_ptrauth_restricted_intptr(ptrauth_key_process_dependent_data, 1, 0x5D0A) |
116 | 117 |
|
117 | 118 | // ptrauth_string_discriminator("CIE_Info::personality") == 0x6A40 |
118 | | - #define __ptrauth_unwind_cfi_personality_disc 0x6A40 |
119 | | - #define __ptrauth_unwind_cfi_personality \ |
| 119 | + #define __ptrauth_unwind_cie_info_personality_disc 0x6A40 |
| 120 | + #define __ptrauth_unwind_cie_info_personality \ |
120 | 121 | __unwind_ptrauth_restricted_intptr(ptrauth_key_function_pointer, 1, \ |
121 | | - __ptrauth_unwind_cfi_personality_disc) |
| 122 | + __ptrauth_unwind_cie_info_personality_disc) |
122 | 123 |
|
123 | 124 | #else |
124 | 125 |
|
125 | | - #define __ptrauth_unwind_personality_fn |
126 | | - #define __ptrauth_unwind_personality_fn_intptr |
127 | | - #define __ptrauth_unwind_proc_startip |
128 | | - #define __ptrauth_unwind_proc_endip |
129 | | - #define __ptrauth_unwind_proc_lsda |
130 | | - #define __ptrauth_unwind_proc_flags |
131 | | - #define __ptrauth_unwind_proc_info |
132 | | - #define __ptrauth_unwind_proc_extra |
133 | | - #define __ptrauth_unwind_arm64_link_reg |
134 | | - #define __ptrauth_unwind_info_section_dso_base |
135 | | - #define __ptrauth_unwind_info_dwarf_section |
136 | | - #define __ptrauth_unwind_info_dwarf_section_length |
137 | | - #define __ptrauth_unwind_info_compact_unwind_section |
138 | | - #define __ptrauth_unwind_info_compact_unwind_section_length |
139 | | - #define __ptrauth_unwind_cfi_personality |
| 126 | + #define __ptrauth_unwind_upi_handler |
| 127 | + #define __ptrauth_unwind_upi_handler_intptr |
| 128 | + #define __ptrauth_unwind_upi_startip |
| 129 | + #define __ptrauth_unwind_upi_endip |
| 130 | + #define __ptrauth_unwind_upi_lsda |
| 131 | + #define __ptrauth_unwind_upi_flags |
| 132 | + #define __ptrauth_unwind_upi_info |
| 133 | + #define __ptrauth_unwind_upi_extra |
| 134 | + #define __ptrauth_unwind_registers_arm64_link_reg |
| 135 | + #define __ptrauth_unwind_uis_dso_base |
| 136 | + #define __ptrauth_unwind_uis_dwarf_section |
| 137 | + #define __ptrauth_unwind_uis_dwarf_section_length |
| 138 | + #define __ptrauth_unwind_uis_compact_unwind_section |
| 139 | + #define __ptrauth_unwind_uis_compact_unwind_section_length |
| 140 | + #define __ptrauth_unwind_cie_info_personality |
140 | 141 |
|
141 | 142 | #endif |
142 | 143 |
|
@@ -185,18 +186,18 @@ typedef double unw_fpreg_t; |
185 | 186 | #endif |
186 | 187 |
|
187 | 188 | struct unw_proc_info_t { |
188 | | - unw_word_t __ptrauth_unwind_proc_startip start_ip; /* start address of function */ |
189 | | - unw_word_t __ptrauth_unwind_proc_endip end_ip; /* address after end of function */ |
190 | | - unw_word_t __ptrauth_unwind_proc_lsda lsda; /* address of language specific data area, */ |
191 | | - /* or zero if not used */ |
| 189 | + unw_word_t __ptrauth_unwind_upi_startip start_ip; /* start address of function */ |
| 190 | + unw_word_t __ptrauth_unwind_upi_endip end_ip; /* address after end of function */ |
| 191 | + unw_word_t __ptrauth_unwind_upi_lsda lsda; /* address of language specific data area, */ |
| 192 | + /* or zero if not used */ |
192 | 193 |
|
193 | | - unw_word_t __ptrauth_unwind_personality_fn_intptr handler; |
194 | | - unw_word_t gp; /* not used */ |
195 | | - unw_word_t __ptrauth_unwind_proc_flags flags; /* not used */ |
196 | | - uint32_t format; /* compact unwind encoding, or zero if none */ |
197 | | - uint32_t unwind_info_size; /* size of DWARF unwind info, or zero if none */ |
198 | | - unw_word_t __ptrauth_unwind_proc_info unwind_info; /* address of DWARF unwind info, or zero */ |
199 | | - unw_word_t __ptrauth_unwind_proc_extra extra; /* mach_header of mach-o image containing func */ |
| 194 | + unw_word_t __ptrauth_unwind_upi_handler_intptr handler; |
| 195 | + unw_word_t gp; /* not used */ |
| 196 | + unw_word_t __ptrauth_unwind_upi_flags flags; /* not used */ |
| 197 | + uint32_t format; /* compact unwind encoding, or zero if none */ |
| 198 | + uint32_t unwind_info_size; /* size of DWARF unwind info, or zero if none */ |
| 199 | + unw_word_t __ptrauth_unwind_upi_info unwind_info; /* address of DWARF unwind info, or zero */ |
| 200 | + unw_word_t __ptrauth_unwind_upi_extra extra; /* mach_header of mach-o image containing func */ |
200 | 201 | }; |
201 | 202 | typedef struct unw_proc_info_t unw_proc_info_t; |
202 | 203 |
|
|
0 commit comments