You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the same time, there is no problem with the source code (please, see attached cfi_cross_dso_problem_report.tar).
Clang's help says:
-fno-sanitize-cfi-cross-dso
Disable control flow integrity (CFI) checks for cross-DSO calls.
As a user of the Clang I understand that if to use -fno-sanitize-cfi-cross-dso, cross-dso places will not be taken into account during CFI operation (compilation and run-time execution).
The text was updated successfully, but these errors were encountered:
Endilll
changed the title
cfi, cross-dso, wrong operation of -fno-sanitize-cfi-cross-dso
cfi, cross-dso, wrong operation of -fno-sanitize-cfi-cross-dsoJul 18, 2024
Extended Description
Clang compiler doesn't ignore cross-dso calls for the following conditions:
-fno-sanitize-cfi-cross-dso
is used;-O2
;ld.lld
linker is used."Compiler-time" problem rises if one try to execute the function from the shared object (.so) from the other executable binary (main).
Instead, compiler generates binary code with undefined instruction on the place where cross-dso is used, for example:
At the same time, there is no problem with the source code (please, see attached cfi_cross_dso_problem_report.tar).
Clang's help says:
As a user of the Clang I understand that if to use
-fno-sanitize-cfi-cross-dso
, cross-dso places will not be taken into account during CFI operation (compilation and run-time execution).The text was updated successfully, but these errors were encountered: