Skip to content

Commit

Permalink
Document hasObjC in ld64
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Nov 26, 2024
1 parent 89efc9e commit d1d470f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/objc2/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ macro_rules! __statics_image_info {
/// - End up in the same codegen unit as the other statics below.
/// - End up in the final binary so it can be read by dyld.
///
/// If it's not present in the codegen unit, then `ld64` won't set
/// `hasObjC` for that specific object file, and in turn it might
/// disable processing of the special Objective-C sections (currently
/// a category merging pass, in the future who knows what).
///
/// Unfortunately however, this leads to duplicated tags - the linker
/// reports `__DATA/__objc_imageinfo has unexpectedly large size XXX`,
/// but things still seems to work.
Expand Down

0 comments on commit d1d470f

Please sign in to comment.