<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 - [MIPS][LLD][FreeBSD] n32 abi check fails with osabi included"
   href="https://bugs.llvm.org/show_bug.cgi?id=43412">43412</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[MIPS][LLD][FreeBSD] n32 abi check fails with osabi included
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kevans@FreeBSD.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22546" name="attach_22546" title="git(1) diff against our contrib tree">attachment 22546</a> <a href="attachment.cgi?id=22546&action=edit" title="git(1) diff against our contrib tree">[details]</a></span>
git(1) diff against our contrib tree

FreeBSD will include '_fbsd' at the end (e.g. "elf32btsmipn32_fbsd") to
indicate osabi in the emulation string. The later mipsN32Abi check compares the
emulation string directly to elf32btsmipn32 and thus, it doesn't get recognized
as N32 ABI.

The attached patch changes these to use StringRef.startsWith since the
emulation strings we're checking for are unique enough that this is OK. It was
unclear to me if we should instead be stripping off the osabi indicator after
it's used, but it doesn't seem to get used much so I opted for this instead.</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>