[ld64.lld][MachO] Add support for the -r flag
Open
lld:MachO
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
-r has not been implemented yet. This feature is useful for creating a single object file that only exposes specified symbols.
https://github.com/llvm/llvm-project/blob/main/lld/MachO/Driver.cpp#L68
Contributor guide
Research direction
Start at lld/MachO/Driver.cpp around the linked line and inspect how linker options are parsed and dispatched. Determine the work needed for -r to create a single object file while exposing only specified symbols; the feature is done when that behavior is supported by ld64.lld.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100