<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Constantia;
        panose-1:2 3 6 2 5 3 6 3 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.gmail-m54216858426956632uioutputtextarea
        {mso-style-name:gmail-m_54216858426956632uioutputtextarea;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hello , </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The linker is ldarm64.EXE  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The llvm version is 3.8.1.1</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">/llvm-3.8.1.1/WIN32/bin/ldarm64.EXE  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Constantia",serif;color:#1f497d">Re,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Constantia",serif;color:#1f497d">Yehuda Marko</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Constantia",serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Constantia",serif;color:#1f497d"><a href="mailto:Yehuda.Marko@scaleil.com"><span style="color:#0563c1">Yehuda.Marko@scaleil.com</span></a> +972544373003</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Constantia",serif;color:#1f497d">ScaleIL</span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray">This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to ScaleIL. All unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Mehdi AMINI [mailto:<a href="mailto:joker.eph@gmail.com">joker.eph@gmail.com</a>] <br><b>Sent:</b> Thursday, May 16, 2019 8:53 AM<br><b>To:</b> yehuda marko <<a href="mailto:yehuda.marko@scaleil.com">yehuda.marko@scaleil.com</a>><br><b>Cc:</b> LLVM Developers Mailing List <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>><br><b>Subject:</b> Re: [llvm-dev] force linker to load symbols from archive (8.a) , even application does not use them explicitly</span></p><p class="MsoNormal"> </p><div><div><div><p class="MsoNormal">Hi,</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><p class="MsoNormal"> </p><div><div><p class="MsoNormal">On Wed, May 15, 2019 at 1:37 PM yehuda marko via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:</p></div><blockquote style="border:none;border-right:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,</p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="gmail-m54216858426956632uioutputtextarea">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. </span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="gmail-m54216858426956632uioutputtextarea"> </span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="gmail-m54216858426956632uioutputtextarea">(In similar in gnu linker the option for the linker will be –whole-archive, or in diab –A ).</span></p></div></div></blockquote><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">It seems that your question relates to the linker, are you asking about lld? lld supports the --whole-archive flag as well I believe.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">If your question is not about lld, can you clarify what you're looking for exactly?</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Best,</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">-- </p></div><div><p class="MsoNormal">Mehdi</p></div><div><p class="MsoNormal"> </p></div></div></div></div></div></body></html>