@@ -130,7 +130,6 @@ cfg_if::cfg_if! {
130130 //
131131 // iOS uses the default routine instead since it uses SjLj unwinding.
132132 #[ lang = "eh_personality" ]
133- #[ no_mangle]
134133 unsafe extern "C" fn rust_eh_personality( state: uw:: _Unwind_State,
135134 exception_object: * mut uw:: _Unwind_Exception,
136135 context: * mut uw:: _Unwind_Context)
@@ -264,7 +263,6 @@ cfg_if::cfg_if! {
264263 // On x86_64 MinGW targets, the unwinding mechanism is SEH however the unwind
265264 // handler data (aka LSDA) uses GCC-compatible encoding.
266265 #[ lang = "eh_personality" ]
267- #[ no_mangle]
268266 #[ allow( nonstandard_style) ]
269267 unsafe extern "C" fn rust_eh_personality( exceptionRecord: * mut uw:: EXCEPTION_RECORD ,
270268 establisherFrame: uw:: LPVOID ,
@@ -280,7 +278,6 @@ cfg_if::cfg_if! {
280278 } else {
281279 // The personality routine for most of our targets.
282280 #[ lang = "eh_personality" ]
283- #[ no_mangle]
284281 unsafe extern "C" fn rust_eh_personality( version: c_int,
285282 actions: uw:: _Unwind_Action,
286283 exception_class: uw:: _Unwind_Exception_Class,
@@ -351,12 +348,12 @@ pub mod eh_frame_registry {
351348 fn __deregister_frame_info ( eh_frame_begin : * const u8 , object : * mut u8 ) ;
352349 }
353350
354- #[ no_mangle ]
351+ #[ rustc_std_internal_symbol ]
355352 pub unsafe extern "C" fn rust_eh_register_frames ( eh_frame_begin : * const u8 , object : * mut u8 ) {
356353 __register_frame_info ( eh_frame_begin, object) ;
357354 }
358355
359- #[ no_mangle ]
356+ #[ rustc_std_internal_symbol ]
360357 pub unsafe extern "C" fn rust_eh_unregister_frames ( eh_frame_begin : * const u8 , object : * mut u8 ) {
361358 __deregister_frame_info ( eh_frame_begin, object) ;
362359 }
0 commit comments