llvm / llvm/llvm-project

[ld64.lld][MachO] Add support for the -r flag

Open
#158,453 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.