[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-17 Thread Miguel Ojeda via cfe-commits
@@ -3643,6 +3643,64 @@ make the function's CFI jump table canonical. See :ref:`the CFI documentation }]; } +def KCFISaltDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ +Use ``__attribute__((kcfi_salt("")))`` on a function declaration, function

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-17 Thread Miguel Ojeda via cfe-commits
@@ -3643,6 +3643,64 @@ make the function's CFI jump table canonical. See :ref:`the CFI documentation }]; } +def KCFISaltDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ +Use ``__attribute__((kcfi_salt("")))`` on a function declaration, function

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-17 Thread Miguel Ojeda via cfe-commits
@@ -3643,6 +3643,64 @@ make the function's CFI jump table canonical. See :ref:`the CFI documentation }]; } +def KCFISaltDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ +Use ``__attribute__((kcfi_salt("")))`` on a function declaration, function

[clang] [llvm] [X86] Extend kCFI with a 3-bit arity indicator (PR #121070)

2024-12-26 Thread Miguel Ojeda via cfe-commits
@@ -254,6 +254,7 @@ FEATURE(is_trivially_constructible, LangOpts.CPlusPlus) FEATURE(is_trivially_copyable, LangOpts.CPlusPlus) FEATURE(is_union, LangOpts.CPlusPlus) FEATURE(kcfi, LangOpts.Sanitize.has(SanitizerKind::KCFI)) +FEATURE(kcfi_x86_arity, LangOpts.Sanitize.has(Sanitize

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Miguel Ojeda via cfe-commits
ojeda wrote: > looks like rust is already tracking and willing to support it? > [Rust-for-Linux/linux#1132](https://github.com/Rust-for-Linux/linux/issues/1132) > (thanks @ojeda) You're welcome! Just in case: if the question is about the entry I added today, then that entry is intended to tra