Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ObjWriter/Mach-O] Mark non-global symbols as .private_extern to matc…
…h ELF (#106446) Extracted from #106224 `.private_extern` is the logical equivalent of `.hidden`+`.global` in ELF. We already emit those flags in ELF, so do it in Mach-O too. Documentation for `.private_extern`: > It's used to mark symbols with limited visibility. When the file is fed to the static linker, it clears the N_EXT bit for each symbol with the N_PEXT bit set. The ld option -keep_private_externs turns off this behavior.
- Loading branch information