https://bugs.llvm.org/show_bug.cgi?id=49544

            Bug ID: 49544
           Summary: ARM BTI support - No BTI after setjmp
           Product: clang
           Version: 11.0
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: C
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

When enabling the -mbranch-protection={bti,standard} option in Clang, BTI/PAC
instruction are well inserted at each function entry, which works well.
However, the setjmp/longjmp API is not supported while it is in the GNU GCC
compiler (see https://gcc.gnu.org/legacy-ml/gcc-patches/2018-11/msg02472.html).
To work properly, a BTI instruction must be added after each call to setjmp
function. I have not found any reference to similar in Clang.

While this code is under fixing, is it possible to build a Clang/LLVM module to
add instruction right after these setjmp calls ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to