<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:markus@oberhumer.com" title="Markus F.X.J. Oberhumer <markus@oberhumer.com>"> <span class="fn">Markus F.X.J. Oberhumer</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - [powerpc64] Section .toc is not properly aligned"
   href="http://llvm.org/bugs/show_bug.cgi?id=22711">bug 22711</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;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - [powerpc64] Section .toc is not properly aligned"
   href="http://llvm.org/bugs/show_bug.cgi?id=22711#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - [powerpc64] Section .toc is not properly aligned"
   href="http://llvm.org/bugs/show_bug.cgi?id=22711">bug 22711</a>
              from <span class="vcard"><a class="email" href="mailto:markus@oberhumer.com" title="Markus F.X.J. Oberhumer <markus@oberhumer.com>"> <span class="fn">Markus F.X.J. Oberhumer</span></a>
</span></b>
        <pre>Please have a look at the following proposed patch which

- actually aligns the *label*
- actually deals with ".got2" sections
- also works for the PPCTargetAsmStreamer class

~Markus


--- a/llvm-3.6.0/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm-3.6.0/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -1051,6 +1051,7 @@
         ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC,
         SectionKind::getReadOnly());
     OutStreamer.SwitchSection(Section);
+    OutStreamer.EmitValueToAlignment(isPPC64 ? 8 : 4);

     for (MapVector<MCSymbol*, MCSymbol*>::iterator I = TOC.begin(),
          E = TOC.end(); I != E; ++I) {</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>