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

            Bug ID: 44096
           Summary: Need a way to disable CFG on individual functions
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

For certain functions, CFG should be disabled, for example a typical 32-bit
detour interceptor that calls into the second instruction of its hooked
function.

I believe the MSVC-ism for this is __declspec(guard(nocf)) but that isn't
implemented in clang-cl. I also tried __attribute__((nocf_check)) but got this
warning: 

warning: 'nocf_check' attribute ignored; use -fcf-protection to enable the
attribute [-Wignored-attributes]

I could add -fcf-protection as the message suggests, but I'm not sure that's
the right solution.

-- 
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