Skip to content

Commit 43fab36

Browse files
committed
fix(std): Add __my_thread_exit stub for QNX 8
This commit adds an empty stub for the function for QNX 8 targets. This symbol is required by the unwinder but is not present, causing a linking failure when building with the standard library.
1 parent 20aa182 commit 43fab36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ unsafe fn _print_fmt(fmt: &mut fmt::Formatter<'_>, print_fmt: PrintFmt) -> fmt::
113113
res = bt_fmt.frame().symbol(frame, symbol);
114114
}
115115
});
116-
#[cfg(target_os = "nto")]
116+
#[cfg(all(target_os = "nto", not(target_env = "nto80")))]
117117
if libc::__my_thread_exit as *mut libc::c_void == frame.ip() {
118118
if !hit && print {
119119
use crate::backtrace_rs::SymbolName;

0 commit comments

Comments
 (0)