{"id":29995,"date":"2020-09-04T16:53:35","date_gmt":"2020-09-04T20:53:35","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=29995"},"modified":"2025-07-08T21:56:24","modified_gmt":"2025-07-09T01:56:24","slug":"auto-linking-in-macho-explorer","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/09\/04\/auto-linking-in-macho-explorer\/","title":{"rendered":"Auto Linking in MachO-Explorer"},"content":{"rendered":"<p><a href=\"https:\/\/milen.me\/writings\/auto-linking-on-ios-and-macos\/\">Milen Dzhumerov<\/a>:<\/p>\n<blockquote cite=\"https:\/\/milen.me\/writings\/auto-linking-on-ios-and-macos\/\"><p>Auto Linking works by inserting linker flags in object files. When the linker creates the final executable, it&rsquo;s as if those linker flags were passed as arguments.<\/p><p>[&#8230;]<\/p><p>I recently <a href=\"https:\/\/github.com\/DeVaukz\/MachO-Kit\/pull\/18\">added support<\/a> for <code>LC_LINKER_OPTION<\/code> to <a href=\"https:\/\/github.com\/DeVaukz\/MachO-Explorer\">MachO-Explorer<\/a>, so you can use it to inspect the linker flags visually as well.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/06\/03\/apples-linker-deterministic-builds\/\">Apple&rsquo;s Linker &amp; Deterministic Builds<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2003\/04\/09\/machoview\/\">MachOView<\/a><\/li>\n<\/ul>\n\n<p id=\"auto-linking-in-macho-explorer-update-2020-09-07\">Update (2020-09-07): <a href=\"https:\/\/twitter.com\/lapcatsoftware\/status\/1302034826648784898\">Jeff Johnson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/lapcatsoftware\/status\/1302034826648784898\">\n<p>PROTIP: autolink doesn&rsquo;t work as expected with import Cocoa<\/p>\n<p>If your binary uses no AppKit symbols, then only Foundation gets linked.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Milen Dzhumerov: Auto Linking works by inserting linker flags in object files. When the linker creates the final executable, it&rsquo;s as if those linker flags were passed as arguments.[&#8230;]I recently added support for LC_LINKER_OPTION to MachO-Explorer, so you can use it to inspect the linker flags visually as well. Previously: Apple&rsquo;s Linker &amp; Deterministic Builds [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-09-04T20:53:39Z","apple_news_api_id":"9b18dd50-d580-43ab-a538-8d53b352ca0a","apple_news_api_modified_at":"2025-07-09T01:56:27Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAQ==","apple_news_api_share_url":"https:\/\/apple.news\/AmxjdUNWAQ6ulOI1Ts1LKCg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[75,205,31,1667,30,32,2792,1978,1666,54,74,71,901],"class_list":["post-29995","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-developertool","tag-dyld","tag-ios","tag-ios-13","tag-mac","tag-macapp","tag-mach-o","tag-macho-explorer","tag-macos-10-15","tag-objective-c","tag-opensource","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=29995"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29995\/revisions"}],"predecessor-version":[{"id":30014,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29995\/revisions\/30014"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=29995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=29995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=29995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}