<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:grimar@accesssoftek.com" title="George Rimar <grimar@accesssoftek.com>"> <span class="fn">George Rimar</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Extra PT_LOAD phdr emitted with content of ELF header and PT_PHDR segment"
   href="https://bugs.llvm.org/show_bug.cgi?id=33551">bug 33551</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>grimar@accesssoftek.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Extra PT_LOAD phdr emitted with content of ELF header and PT_PHDR segment"
   href="https://bugs.llvm.org/show_bug.cgi?id=33551#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Extra PT_LOAD phdr emitted with content of ELF header and PT_PHDR segment"
   href="https://bugs.llvm.org/show_bug.cgi?id=33551">bug 33551</a>
              from <span class="vcard"><a class="email" href="mailto:grimar@accesssoftek.com" title="George Rimar <grimar@accesssoftek.com>"> <span class="fn">George Rimar</span></a>
</span></b>
        <pre>LLD 8.0.0 (trunk 348589) does not do this anymore:

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000001000 0x0000000000002000 0x0000000000100000
                 0x0000000000000001 0x0000000000000001  R E    0x1000
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RW     0x0

We have a code that fixes exactly such cases, so I am closing this:
<a href="https://github.com/llvm-mirror/lld/blob/master/ELF/ScriptParser.cpp#L534">https://github.com/llvm-mirror/lld/blob/master/ELF/ScriptParser.cpp#L534</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>