<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 - lldCommon linking error on Linux"
   href="https://bugs.llvm.org/show_bug.cgi?id=35661">35661</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldCommon linking error on Linux
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>chen.pang.he@jdh8.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19550" name="attach_19550" title="Proposed patch">attachment 19550</a> <a href="attachment.cgi?id=19550&action=edit" title="Proposed patch">[details]</a></span>
Proposed patch

I tried to build latest lld on Linux.  It ended with linking
errors, that were undefined reference to

llvm::Function::getContext() const
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::AttrBuilder::addAttribute(llvm::StringRef, llvm::StringRef)
llvm::Attribute::get(llvm::LLVMContext&, llvm::StringRef, llvm::StringRef)
llvm::CallInst::addAttribute(unsigned int, llvm::Attribute)
llvm::AttributeList::addAttributes(llvm::LLVMContext&, unsigned int,
llvm::AttrBuilder const&) const

I found these function belonging to Core, and hence I wrote this
proposed patch.  This patch works for me.</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>