<html>
    <head>
      <base href="https://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 --- - [ELF] - LLD fails to link "hello world" i386 application."
   href="https://llvm.org/bugs/show_bug.cgi?id=31215">31215</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ELF] - LLD fails to link "hello world" i386 application.
          </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>normal
          </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>grimar@accesssoftek.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Steps to reproduce:

1) Create empty test.cpp
2) ~/LLVM/build/bin/clang -m32 -fPIC -shared -fuse-ld=lld -Wl,--reproduce,repro
test.cpp -o test.lld

++ /home/umb/LLVM/build/bin/clang -m32 -fPIC -shared -fuse-ld=lld
-Wl,--reproduce,repro test.cpp -o test.lld
/home/umb/LLVM/build/bin/ld.lld: error:
crtstuff.c:(.text.__x86.get_pc_thunk.bx+0x0): duplicate symbol
'__x86.get_pc_thunk.bx'
/home/umb/LLVM/build/bin/ld.lld: error:
/usr/lib/gcc/x86_64-linux-gnu/5.4.1/../../../i386-linux-gnu/crti.o:(function
__x86.get_pc_thunk.bx): previous definition was here
clang-4.0: error: linker command failed with exit code 1 (use -v to see
invocation)

bfd links fine</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>