#1101027 clang-19: clang -fsanitize=safe-stack causes link error

Package:
clang-19
Source:
clang-19
Description:
C, C++ and Objective-C compiler
Submitter:
Ryutaroh Matsumoto
Date:
2025-03-22 08:39:02 UTC
Severity:
normal
#1101027#5
Date:
2025-03-22 08:34:51 UTC
From:
To:
Dear Maintainer,

The compiler option -fsanitize=safe-stack seems supported (or not?),
but we have the following linker error:

root@raspi4b-router2:~# cat hello.c
#include <stdio.h>
int main(void) { printf("hello\n"); return 0; }
root@raspi4b-router2:~# clang  -fsanitize=safe-stack  hello.c
/bin/ld: cannot find /usr/lib/llvm-19/lib/clang/19/lib/aarch64-unknown-linux-gnu/libclang_rt.safestack.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Best regards, Ryutaroh Matsumoto