<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><blockquote data-history-content-modified="1" data-history-expanded="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" > 
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >On 2021-07-25, Wael Yehia via llvm-dev wrote:<br>>Hi,<br>>Our linker uses the libLTO interface. Given an lto_module_t, we are trying to<br>>check if it contains the @llvm.global_ctors or the @llvm.global_dtors global<br>>variables. We need to know this information in order to decide whether to<br>>include a bitcode archive member in the LTO step or not.<br><br>This is strange. Constructors should be orthogonal to archive member extraction.<br>If an archive member is unused, it is not extracted and its constructors<br>are suppressed.</font></div></blockquote>
<div dir="ltr" ><font size="2" face="Default Monospace,Courier New,Courier,monospace" >Certain linker flag forces it to include all archive members that have a constructor or destructor. I agree it's strange.</font></div></div><BR>
<BR>