[PATCH] D116913: [lld-macho] Add --start-lib --end-lib

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 15 15:09:31 PST 2022


MaskRay updated this revision to Diff 400326.
MaskRay added a comment.

- Support -ObjC
- remove `inLib`

I keep my viewpoint that --start-lib is more suitable because of (b) (as stated in the description).
The library boundary is useful and -objlib would lose the information.

--whole-archive (-force_load), while similar, keeps the library boundary information,
so it's not the best analogy.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116913/new/

https://reviews.llvm.org/D116913

Files:
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/Options.td
  lld/MachO/SymbolTable.cpp
  lld/MachO/SymbolTable.h
  lld/MachO/Symbols.h
  lld/MachO/UnwindInfoSection.cpp
  lld/test/MachO/objc-uses-custom-personality.s
  lld/test/MachO/objc.s
  lld/test/MachO/start-lib.s
  lld/test/MachO/weak-definition-direct-fetch.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116913.400326.patch
Type: text/x-patch
Size: 25865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220115/8e01a4ec/attachment.bin>


More information about the llvm-commits mailing list