<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - PPC64: unsupported relocation modifier in Dwarf debug info crashes llc"
   href="http://llvm.org/bugs/show_bug.cgi?id=16493">16493</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PPC64: unsupported relocation modifier in Dwarf debug info crashes llc
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kai@redstar.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10796" name="attach_10796" title=".ll file crashing llc">attachment 10796</a> <a href="attachment.cgi?id=10796&action=edit" title=".ll file crashing llc">[details]</a></span>
.ll file crashing llc

Run llc -filetype=obj -O0 ppcbug.ll using the attached file ppcbug.ll.

This results in the following assertion error:

Unsupported Modifier
UNREACHABLE executed at
/home/u0012540/llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp:303!

Root cause seems to be the debug info for the TLS variable.

LLVM generates 

.quad   FE_DFL_ENV@DTPOFF

Similar C code generates with ggc:

.quad   FE_DFL_ENV@dtprel+0x8000</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>