Skip to content

【cfi】 Do we need to turn on cfi for static libraries? #70339

Open
@yinchuang-code

Description

@yinchuang-code

1、Do we need to open cfi for all static libraries that the shared library (which enable cfi)depends on?
2、If a static library has cfi turned on, do we need to turn on cfi for all shared libraries that contain it?

In our practice if we don't open cfi for the static library that the shared library (which enable cfi)depends on, we will have a cfi check failed, the cfi_check don't know the vtable which is exist in the static library

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler-rt:cfiControl Flow IntegrityquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions