[llvm-bugs] [Bug 45385] New: Re-introduce support for elf32-sparc for OUTPUT_FORMAT

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 1 06:02:38 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45385

            Bug ID: 45385
           Summary: Re-introduce support for elf32-sparc for OUTPUT_FORMAT
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: cristiana.crisan at gmail.com
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

Hello!

My request is related to this review here https://reviews.llvm.org/D53495,
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:

https://github.com/llvm/llvm-project/blob/release/9.x/lld/ELF/ScriptParser.cpp,

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200401/18d1d1e0/attachment.html>


More information about the llvm-bugs mailing list