<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 - FreeBSD armv6 kernel fails to link with LLD: "incompatible section flags for .bss""
   href="https://bugs.llvm.org/show_bug.cgi?id=33482">33482</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FreeBSD armv6 kernel fails to link with LLD: "incompatible section flags for .bss"
          </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>FreeBSD
          </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>emaste@freebsd.org
          </td>
        </tr>

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

        <tr>
          <th>Blocks</th>
          <td>23214
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I haven't yet investigated if this is a FreeBSD or LLD issue, but GNU ld
handles this input.

linking kernel.full
ld: error: incompatible section flags for .bss
<span class="quote">>>> locore.o:(.init_pagetable): 0x0
>>> output section .bss: 0x3</span >
*** Error code 1

Reproduction tarball at
<a href="https://people.freebsd.org/~emaste/lld/lld_armv6_kernel_section_flags.tar.xz">https://people.freebsd.org/~emaste/lld/lld_armv6_kernel_section_flags.tar.xz</a></pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Using LLD as FreeBSD's system linker"
   href="https://bugs.llvm.org/show_bug.cgi?id=23214">Bug 23214</a>] [META] Using LLD as FreeBSD's system linker
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>