<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Missing relocation 88 (R_PPC_GOT_TPREL16_LO) for powerpc 32 bit"
   href="https://bugs.llvm.org/show_bug.cgi?id=43150">43150</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing relocation 88 (R_PPC_GOT_TPREL16_LO) for powerpc 32 bit
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>ELF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alfredo.junior@eldorado.org.br
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When statically linking a simple test program usin LLVM9 or 10 (trunk), I found
the following problem:


/root/src/llvm-project/build/bin/clang -target powerpc-unknown-freebsd13.0 -O2
-g --sysroot=/usr/obj/root/src/freebsd/powerpc.powerpc64/obj-lib32/tmp/ t1.c -o
t1.lld.static  -fuse-ld=/root/src/llvm-project/build/bin/ld.lld -static
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: unknown relocation (88) against symbol __je_tsd_tls
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see
all errors)
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)

A reproduce tarball will be attached.</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>