In particular, they should not cause archives to be eagerly loaded. This
matches ld64's behavior.
Fixes PR52246.
Paths
| Differential D112756
[lld-macho] -all_load and -ObjC should not affect LC_LINKER_OPTION flags ClosedPublic Authored by int3 on Oct 28 2021, 1:57 PM.
Details
Summary In particular, they should not cause archives to be eagerly loaded. This Fixes PR52246.
Diff Detail
Event TimelineComment Actions Nice!
This revision is now accepted and ready to land.Oct 28 2021, 6:42 PM Closed by commit rG6c2f26a159ec: [lld-macho] -all_load and -ObjC should not affect LC_LINKER_OPTION flags (authored by int3). · Explain WhyOct 29 2021, 8:00 AM This revision was automatically updated to reflect the committed changes. int3 marked 2 inline comments as done.
Revision Contents
Diff 383156 lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/test/MachO/lc-linker-option.ll
|
nit: I'd s/!= ForceLoad::No/s == ForceLoad::Default/ since then the reader doesn't have to read line 257 to realize that ::Yes never comes here and hence is uninteresting