[lld] [MachO LLD] Respect -all_load with --start-lib --end-lib style archives (PR #93993)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 11:23:28 PDT 2024
================
@@ -1169,7 +1169,8 @@ static void createFiles(const InputArgList &args) {
switch (opt.getID()) {
case OPT_INPUT:
- addFile(rerootPath(arg->getValue()), LoadType::CommandLine, isLazy);
+ addFile(rerootPath(arg->getValue()), LoadType::CommandLine,
+ isLazy && !config->allLoad);
----------------
alx32 wrote:
What if adding on line ~278:
```
bool loadLazily = isLazy && !config->allLoad;
```
And updating lines 370 + 380 to use `loadLazily` ?
https://github.com/llvm/llvm-project/pull/93993
More information about the llvm-commits
mailing list