<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 - clang++-9 generates linker error with address sanitizer and gold linker"
   href="https://bugs.llvm.org/show_bug.cgi?id=44989">44989</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang++-9 generates linker error with address sanitizer and gold linker
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>joubert.sy@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm using all packages from a Debian testing installation.

The combination of clang++-9 && address sanitizer && gold linker gives me a
linker warning (potentially turned into an error by linker flag) about not
being able to export the local symbol `__asan_extra_spill_area`.

$ cat main.cpp
int main(){}

$ /usr/bin/clang++-9 -fsanitize=address -fuse-ld=gold main.cpp
/usr/bin/ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area'

Only the specific combination of clang 9/10, address sanitizer and gold linker
seems to be broken:
- Changing compiler solves the issue: g++ 9.2.1 and clang++-8 are ok, clang++-9
and clang++-10-rc2 exhibit the issue
- Changing the sanitizer solves the issue: undefined, memory and thread are ok
- Changing the linker solves the issue: bfd and lld-9 are ok</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>