<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/120894>120894</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-objcopy MachO: does not support localizing and globalizing symbols
</td>
</tr>
<tr>
<th>Labels</th>
<td>
tools:llvm-objcopy/strip,
platform:macos
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
RIscRIpt
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RIscRIpt
</td>
</tr>
</table>
<pre>
On some occasions, there is a need to modify the behavior of a translation unit in a static library. There are many ways to achieve the same result, but the least hacky option might be exposing private symbols in an object file.
Currently, llvm-objcopy for Mach-O does not support either `--localize-symbol` or `--globalize-symbol`.
https://github.com/RIscRIpt/llvm-project/blob/b28412d5397dc5a23f172d6ebeac760c82a82248/llvm/lib/ObjCopy/ConfigManager.cpp#L36-L37
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8klGvozYQhX-NeRklggESeOAhTRVppV1dadU_MDYD-NYwyDZp6a-vTHO1va20T5Y98jnH_g6FYMeFuVP1Lwrx-5dgvn9Zo0JU9a8ZbXES332cZlr6vXtbIMjMIMZQsLIEhXeIE3sGG4BgYe4hCszS22FPE9A80dOKBxmAIHpagqNoZYFtsRHsAgQhUrQGnNWe_H6G3w5F8gwzLTv8QXtIqmQmy08-ZAPNDJ7D5mLKoLd4HDumEGEi8_sOsh42sx2nCJqB_1wl2GWE1dsnRYawz1pcODIsIPqdTYTBOj6r_HbfvOcluj3JO_ecT6Lfjaw7DOLhG5np9Aa9cIBFIoRtXcVHYJt-A9QlP52cGHL2Lz7946MuOchrNDrR_5klT5XfphjXoMqbwofCx2jjtOmzkVnh4wegx5Fn9ZISK3xoJzot2FQF9nXZXntTE5ZDccX-wprJXC-5aZAaxKp5CaTFpntv-v0u667wcZdlsOM3WmhkfzbrqrD8Wl5OX8urym9Z35V9W7aUcVdcy6q5Fte6zqauKVCzwYF7zk2LVWuaivK6acrSVHnbZ7bDHKsCEQus2qI-tzVpfeF2KHAwbFhVOc9k3TkFO4sfMxvCxl2BedNWmSPNLryKGkVc-qJ_Q1H4CNHbNZUX7wpxdRQH8bMqbzMZCa9W--64pbcxqCp3NsTwwzLa6Lj7xDpxflPl7f-kX3RTn2jp4YNo2r96lW3edT_h-cHgM8vj3UHh4_X0Z4d_BwAA__9E5Df6">