Skip to content

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

@RIscRIpt

Description

@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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions