<p dir="ltr">Yes.</p>
<div class="gmail_quote">2015/11/14 6:59 "George Rimar" <<a href="mailto:grimar@accesssoftek.com">grimar@accesssoftek.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">grimar added inline comments.<br>
<br>
================<br>
Comment at: ELF/Writer.cpp:545-546<br>
@@ -538,2 +544,4 @@<br>
         continue;<br>
+      if (!shouldOutputSection(C))<br>
+        continue;<br>
       const Elf_Shdr *H = C->getSectionHdr();<br>
----------------<br>
ruiu wrote:<br>
> We don't use input files' .note.GNU-stack sections at all. Maybe we should ignore them in .note.GNU-stack?<br>
Do you mean ignore them in initializeSections ? Something like next ?<br>
<br>
<br>
```<br>
switch (Sec.sh_type) {<br>
...<br>
 default:<br>
    if (NameOrErr == ".note.GNU-stack")<br>
      Sections[I] = &InputSection<ELFT>::Discarded;<br>
```<br>
<br>
<br>
<a href="http://reviews.llvm.org/D14571" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14571</a><br>
<br>
<br>
<br>
</blockquote></div>