[llvm-dev] force linker to load symbols from archive (8.a) , even application does not use them explicitly

Mehdi AMINI via llvm-dev llvm-dev at lists.llvm.org
Wed May 15 22:53:14 PDT 2019


Hi,



On Wed, May 15, 2019 at 1:37 PM yehuda marko via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello,
>
>
>
>
>
> I want to force the linker to load all the symbols (object files) related
> to specific archive (.a) even though the application does not use them
> explicitly.
>
>
>
> (In similar in gnu linker the option for the linker will be
> –whole-archive, or in diab –A ).
>


It seems that your question relates to the linker, are you asking about
lld? lld supports the --whole-archive flag as well I believe.

If your question is not about lld, can you clarify what you're looking for
exactly?

Best,

-- 
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190515/ebc99074/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190515/ebc99074/attachment.jpg>


More information about the llvm-dev mailing list