[llvm-bugs] [Bug 41544] New: Missing support for RISC-V --binary-architecture and --output-target values
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 19 14:46:49 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41544
Bug ID: 41544
Summary: Missing support for RISC-V --binary-architecture and
--output-target values
Product: tools
Version: trunk
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: jorg.brown at gmail.com
CC: alexander.v.shaposhnikov at gmail.com,
jake.h.ehrlich at gmail.com,
jh7370.2008 at my.bristol.ac.uk,
llvm-bugs at lists.llvm.org, rupprecht at google.com
objcopy's support for -binary-architecture values is surprisingly sparse;
currently it's driven by this map in CopyConfig.cpp:
static const StringMap<MachineInfo> ArchMap{
// Name, {EMachine, 64bit, LittleEndian}
{"aarch64", {ELF::EM_AARCH64, true, true}},
{"arm", {ELF::EM_ARM, false, true}},
{"i386", {ELF::EM_386, false, true}},
{"i386:x86-64", {ELF::EM_X86_64, true, true}},
{"mips", {ELF::EM_MIPS, false, false}},
{"powerpc:common64", {ELF::EM_PPC64, true, true}},
{"sparc", {ELF::EM_SPARC, false, true}},
{"x86-64", {ELF::EM_X86_64, true, true}},
};
There should be entries there for riscv; I imagine they would be "riscv:rv32"
and "riscv:rv64".
Likewise, output_format should allow elf32-littleriscv and elf64-littleriscv .
--
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/20190419/c60d123b/attachment.html>
More information about the llvm-bugs
mailing list