<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 - missing FILE symbol for .(s|S) files"
   href="https://bugs.llvm.org/show_bug.cgi?id=34019">34019</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>missing FILE symbol for .(s|S) files
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>robert@openbsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello

When compiling .(s|S) files with clang, a FILE symbol is missing from the
object
file, unless explicitly setting one with the .file directive. Not using the
integrated as, also fixes the issue:

$ clang -g bzero.S a.c && readelf -Ws a.out | grep FILE 
    33: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a.c

$ clang -no-integrated-as -g bzero.S a.c && readelf -Ws a.out | grep FILE
    31: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bzero.S
    33: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a.c

$ gcc -g bzero.S a.c && readelf -Ws a.out | grep FILE   
    31: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bzero.S
    33: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a.c

This seems like a bug and the FILE symbol should be added with the integrated
as as well.

Thank you!</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>