Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm-objcopy MachO: does not support localizing and globalizing symbols #120894

Open
RIscRIpt opened this issue Dec 22, 2024 · 1 comment · May be fixed by #120895
Open

llvm-objcopy MachO: does not support localizing and globalizing symbols #120894

RIscRIpt opened this issue Dec 22, 2024 · 1 comment · May be fixed by #120895

Comments

@RIscRIpt
Copy link
Member

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

@llvmbot
Copy link
Member

llvmbot commented Dec 22, 2024

@llvm/issue-subscribers-tools-llvm-objcopy-strip

Author: Richard Dzenis (RIscRIpt)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants