llvm-project
446d7a62 - [compiler-rt] Add PA-RISC support to sanitizer_common (#238640)

Commit
1 day ago
[compiler-rt] Add PA-RISC support to sanitizer_common (#238640) Add support for [PA-RISC](https://en.wikipedia.org/wiki/PA-RISC) (32-bit hppa Linux) to sanitizer_common. UBSan and ASan follow in separate PRs. - [sanitizer] Add SANITIZER_HPPA platform macro - [sanitizer] Add PA-RISC struct size constants - [sanitizer] Skip __old_kernel_stat check on PA-RISC - [sanitizer] Add PA-RISC ioctl encoding constants - [sanitizer] PA-RISC kernel uid_t and gid_t are 32 bits - [sanitizer] Add PA-RISC SysV IPC struct layouts - [sanitizer] Add PA-RISC struct sigaction layouts - [sanitizer] Disable interceptor trampoline on PA-RISC - [sanitizer] Add PA-RISC ThreadDescriptorSizeFallback() - [sanitizer] Find the main thread's stack on PA-RISC - [sanitizer] Accept stack overflows below sp on PA-RISC - [sanitizer] Disable fast unwinder on PA-RISC - [compiler-rt] Enable sanitizer_common on PA-RISC Linux The PA-RISC stack grows towards higher addresses, which three of the commits deal with: main thread stack bounds, stack overflow detection, and the fast unwinder. There is no PA-RISC backend upstream, so I tested with a downstream one. I cross-built the runtimes for `hppa2.0-unknown-linux-gnu` and ran a UBSan signed overflow test (with the follow-up UBSan PR applied) on a PA8900 (Linux 6.11, glibc 2.44) and under qemu-hppa 10.2.3. Assisted-by: Claude Code
Author
Parents
Loading