Post

Replies

Boosts

Views

Activity

Reply to Reduce dyld overhead
Ah, sorry I had found the oss implementation of libSystem_initializer before I commented here. It's just a lot of callouts to other functions that implement the actual behaviour and therefore a bit of a slog to walk through manually, so I was hoping that there was some known advice for skipping some of the work it does. I'll take a look at __libplatform_init and the rundown you wrote up about the linker and loading.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’26
Reply to Using Processor Trace on Non-Xcode Built Binary
Kacper, that doesn't seem to be true? At least in macOS 26.2 (25C56) I get the following error if I don't add the entitlement: Processor Trace cannot profile this process without proper permissions. Recovery Suggestion: Either: Add the 'com.apple.security.get-task-allow' entitlement to your binary entitlements file, or Make sure the build setting CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES is enabled when building with Xcode.
Jan ’26
Reply to Reduce dyld overhead
Ah, sorry I had found the oss implementation of libSystem_initializer before I commented here. It's just a lot of callouts to other functions that implement the actual behaviour and therefore a bit of a slog to walk through manually, so I was hoping that there was some known advice for skipping some of the work it does. I'll take a look at __libplatform_init and the rundown you wrote up about the linker and loading.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Reduce dyld overhead
I made a "true" clone, just returning 0 immediately from main. It looks pretty much the same in terms of dyld setup time. 893μs for "Launch executable" of which 454μs is "Run static initializer" for libSystem.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Using Processor Trace on Non-Xcode Built Binary
Kacper, that doesn't seem to be true? At least in macOS 26.2 (25C56) I get the following error if I don't add the entitlement: Processor Trace cannot profile this process without proper permissions. Recovery Suggestion: Either: Add the 'com.apple.security.get-task-allow' entitlement to your binary entitlements file, or Make sure the build setting CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES is enabled when building with Xcode.
Replies
Boosts
Views
Activity
Jan ’26