Lines Matching refs:CFI

16 Clang includes an implementation of a number of control flow integrity (CFI)
22 To enable Clang's available CFI schemes, use the flag ``-fsanitize=cfi``.
29 be structured such that certain object files are compiled with CFI
33 The compiler will only produce CFI checks for a class if it can infer hidden
41 CFI checks for classes without visibility attributes. Most users will want
42 to specify ``-fvisibility=hidden``, which enables CFI checks for such classes.
80 least one CFI scheme is enabled.
85 By default, CFI will abort the program immediately upon detecting a control
87 <controlling-code-generation>` flag to cause CFI to print a diagnostic
97 If diagnostics are enabled, you can also configure CFI to continue program
101 Forward-Edge CFI for Virtual Calls
107 This CFI scheme can be enabled on its own using ``-fsanitize=cfi-vcall``.
169 polymorphic class type. This CFI scheme can be enabled on its own using
200 the static type used at the call. This CFI scheme can be enabled on its own
245 the address of each CFI-checked function in the output file's symbol table
246 with the address of a jump table entry which will pass CFI checks. We refer
248 was not compiled with ``-fsanitize=cfi-icall`` to take a CFI-valid address
250 relevant for users of cross-DSO CFI:
258 - There is no good way to take a CFI-valid address of a function written in
260 generator would need to insert a jump table in order to form a CFI-valid
282 for CFI. For example, this is necessary when a function's address
283 is taken by assembly code and then called by CFI-checking C code. The
286 code will end up taking an address for the function that will pass CFI checks.
317 type of the member function. This CFI scheme can be enabled on its own using
320 The compiler will only emit a full CFI check if the member function pointer's
322 type contains information that is necessary to correctly compile the CFI
323 check. To ensure that the compiler always emits a full CFI check, it is
334 This scheme is currently not compatible with cross-DSO CFI or the
342 A :doc:`SanitizerSpecialCaseList` can be used to relax CFI checks for certain
344 entity types. Specific CFI modes can be be specified using ``[section]``
349 # Suppress all CFI checking for code in a file.
359 # Disable CFI call checks for this function without affecting cast checks
370 flow integrity mode, which allows all CFI schemes listed above to
371 apply across DSO boundaries. As in the regular CFI, each DSO must be
374 Normally, CFI checks will only be performed for classes that have hidden LTO
375 visibility. With this flag enabled, the compiler will emit cross-DSO CFI
376 checks for all classes, except for those which appear in the CFI ignorelist