Issue 114111
Summary macOS: Why are Objective-C sections marked with `no_dead_strip`?
Labels new issue
Assignees
Reporter 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](https://github.com/llvm/llvm-project/blob/7836603062ea9bb519bb68187024a58bb7c2f31b/clang/lib/CodeGen/CGObjCMac.cpp#L7450).

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?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to