[PATCH 1/3] [linkers] Add RISC-V machine to rld-elf
Chris Johns
chrisj at rtems.org
Mon Nov 11 22:32:40 UTC 2019
Ok to push these patches.
Chris
On 11/11/19 11:40 pm, Hesham Almatary wrote:
> ---
> rtemstoolkit/rld-elf.cpp | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/rtemstoolkit/rld-elf.cpp b/rtemstoolkit/rld-elf.cpp
> index 231f2bf..ffa3376 100644
> --- a/rtemstoolkit/rld-elf.cpp
> +++ b/rtemstoolkit/rld-elf.cpp
> @@ -1189,6 +1189,11 @@ namespace rld
> { "m68k", EM_COLDFIRE },
> { "mips", EM_MIPS },
> { "powerpc", EM_PPC },
> +#ifndef EM_RISCV
> + { "riscv", 243 }, /* If not in libelf yet */
> +#else
> + { "riscv", EM_RISCV },
> +#endif
> { "sh", EM_SH },
> { "sparc", EM_SPARC },
> { "sparc64", EM_SPARC },
>
More information about the devel
mailing list