[PATCH] D40849: CodeGen: support an extension to pass linker options on ELF

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 10:09:52 PST 2017


compnerd added a comment.

Sure, the intent is that only a subset of features would be used.  But, controlling which subset of the features shouldn't be limited in the implementation I think.  This is mostly meant to serve as a means for adding equivalent functionality for linking that exists elsewhere.  Im thinking of things like library search paths and linked libraries are generally pretty useful to be able to embed in a static library (as well as objects).  One place where this would be immediately useful would be swift and Linux where currently the linker directives are added into a special section, a special tool will then post-process object files to extract and construct response files to pass along the options.  All of this seems unnecessary and bulky when all the other object files support a clean way to support this.


Repository:
  rL LLVM

https://reviews.llvm.org/D40849





More information about the llvm-commits mailing list