3 ms·
> The leading '_' before symbols isn't just a macOS thing it definitely is - see e.g. https://github.com/llvm-mirror/lld/blob/master/lib/ReaderWriter/MachO/Mac
by jcelerier 6y ago
> The leading '_' before symbols isn't just a macOS thing
it definitely is - see e.g. https://github.com/llvm-mirror/lld/blob/master/lib/ReaderWriter/MachO/MachOLinkingContext.cpp#L874 https://github.com/llvm-mirror/lld/blob/master/lib/ReaderWri...
- flohofwoe 6y agoOh ok, that must be an extra leading underscore then, haven't stumbled over this yet though.
- jcelerier 6y agothe only cases you stumble over it is if you're trying to do linking / symbol loading yourself manually (e.g. in my case it was because I was looking into JIT compilation mechanisms)