logoalt Hacker News

spockzyesterday at 6:46 AM1 replyview on HN

IIRC everything you compile on macOS yourself, possibly only when using Apple’s llvm toolchain, already gets the proper bits set to execute just fine. This also seems to work for rust and go binaries. I’m not sure whether that is because they replicated the macOS llvm toolchain behaviour for the flag or whether another mechanism is at play.


Replies

wtetzneryesterday at 1:48 PM

I don't know about Go, but I think Rust uses the system linker by default.