about summary refs log tree commit diff
path: root/compiler/rustc_abi/src/layout.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-29 12:54:10 +1000
committerGitHub <noreply@github.com>2025-08-29 12:54:10 +1000
commit6ac6eb6f49a97461ce5eadd71d533a7de8395e5b (patch)
tree9a478ea7ed9f4aa3cdc81d77cb3595c3e5d10250 /compiler/rustc_abi/src/layout.rs
parentef50370ec1db7ae43922d4cc14166172b8aa0ed7 (diff)
parent17c866780e4f60c4b5ce0c0925557949c9c8d8b1 (diff)
downloadrust-6ac6eb6f49a97461ce5eadd71d533a7de8395e5b.tar.gz
rust-6ac6eb6f49a97461ce5eadd71d533a7de8395e5b.zip
Rollup merge of #144354 - rafaeling:fix-142726-qnx8-link-fail, r=tgross35
fix(std): Fix undefined reference to __my_thread_exit on QNX 8.0

When cross-compiling for the x86_64/aarch64-unknown-nto-qnx800 target (QNX SDP 8.0), the build fails during the final link stage with the error:
```
error: linking with `qcc` failed: exit status: 1
  ...
  = note: undefined reference to `__my_thread_exit'
 ```

- **On QNX 7.1**: The __my_thread_exit symbol is defined and exported by the main C library (libc.a/libc.so). The std backtrace code can therefore successfully take its address at compile time.

- **On QNX 8.0**: As part of a toolchain modernization, this symbol has been refactored. It is no longer present in any of the standard system libraries (.a or .so).

This patch addresses the problem at its source by conditionally compiling the problematic code.

Fixes rust-lang/rust#142726
Diffstat (limited to 'compiler/rustc_abi/src/layout.rs')
0 files changed, 0 insertions, 0 deletions