Skip to content

macOS: Why are Objective-C sections marked with no_dead_strip? #114111

Open
@madsmtm

Description

@madsmtm

Why are the sections used internally by Objective-C marked by Clang with no_dead_strip?

For example __DATA,__objc_classrefs,regular,no_dead_strip in here.

It seems like that might prevent (like the name says) certain forms of dead stripping of Objective-C code? Though I couldn't find an example of this, in practice the linker seems to remove it anyhow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:codegenIR generation bugs: mangling, exceptions, etc.objective-cquestionA 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