[lld] [MachO LLD] Respect -all_load with --start-lib --end-lib style archives (PR #93993)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 12:15:33 PDT 2024


MaskRay wrote:

Mach-O -all_load is like a global variant of ELF --whole-archive --no-whole-archive.
For ELF, we have rejected the proposal to treat `--whole-archive --start-lib a.o --end-lib --no-whole-archive` as `.o`
because there isn't a clear signal for --whole-archive to override --start-lib and we stick with the simplest implementation.

For Mach-O, it might make sense for the non-positional -all_load to override --start-lib.
But I expect more reasoning behind this change.


https://github.com/llvm/llvm-project/pull/93993


More information about the llvm-commits mailing list