aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorVictor Campos <victor.campos@arm.com>2025-04-25 11:04:34 +0100
committerGitHub <noreply@github.com>2025-04-25 11:04:34 +0100
commit6738cfe0a40af2754000346ff090ebb2115ce15f (patch)
treea151992b31997e761126b911f8eb84d194fe1957 /clang/lib/Frontend
parenta4d1a9d6d5c44d37b926e675e6f707eb35b601b0 (diff)
downloadllvm-6738cfe0a40af2754000346ff090ebb2115ce15f.zip
llvm-6738cfe0a40af2754000346ff090ebb2115ce15f.tar.gz
llvm-6738cfe0a40af2754000346ff090ebb2115ce15f.tar.bz2
Mark CXX module initializer with PACBTI attributes (#133716)
The CXX module initializer function, which is called at program startup, needs to be tagged with Pointer Authentication and Branch Target Identification marks whenever relevant. Before this patch, in CPUs set up for PACBTI execution, the function wasn't protected with return address signing and no BTI instruction was inserted at the start of it, thus leading to an execution fault. This patch fixes the issue by marking the function with the function attributes related to PAC and BTI if relevant.
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions