<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 - Re-introduce support for elf32-sparc for OUTPUT_FORMAT"
   href="https://bugs.llvm.org/show_bug.cgi?id=45385">45385</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Re-introduce support for elf32-sparc for OUTPUT_FORMAT
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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>ELF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cristiana.crisan@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello!

My request is related to this review here <a href="https://reviews.llvm.org/D53495">https://reviews.llvm.org/D53495</a>,
quote:
"Since I'm not 100% confident with BFD names you can use in the directive
for all architectures, I added only a few in this patch. We can add
other names for other archtiectures later."

I've migrated my linker to LLVM 9 and noticed that there is no support for
'elf32-sparc' as an option for the OUTPUT_FORMAT() command in the linkerscript.

This can be easily fixed in file:

<a href="https://github.com/llvm/llvm-project/blob/release/9.x/lld/ELF/ScriptParser.cpp">https://github.com/llvm/llvm-project/blob/release/9.x/lld/ELF/ScriptParser.cpp</a>,

by inserting:

.Case("elf32-sparc", {ELF32LEKind, EM_SPARC}) 

before the default case, at line 407.

Seems that the corresponding code is still there, so I guess it's just
inaccessible, it's not planned to be thrown out.

There is no change in the master branch, so I suppose nobody asked for
elf32-sparc support until now.

Let me know if I should add more detail.

Thanks,
Cristiana</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>