[PATCH v3 01/30] elf: Add machine type value for LoongArch

WANG Xuerui posted 30 patches 4 years, 2 months ago
Maintainers: Riku Voipio <riku.voipio@iki.fi>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Laurent Vivier <laurent@vivier.eu>, WANG Xuerui <git@xen0n.name>
There is a newer version of this series
[PATCH v3 01/30] elf: Add machine type value for LoongArch
Posted by WANG Xuerui 4 years, 2 months ago
This is already officially allocated as recorded in GNU binutils
repo [1], and the description is updated in [2]. Add to enable further
work.

[1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e
[2]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3

Signed-off-by: WANG Xuerui <git@xen0n.name>
---
 include/elf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/elf.h b/include/elf.h
index 811bf4a1cb..3a4bcb646a 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -182,6 +182,8 @@ typedef struct mips_elf_abiflags_v0 {
 
 #define EM_NANOMIPS     249     /* Wave Computing nanoMIPS */
 
+#define EM_LOONGARCH    258     /* LoongArch */
+
 /*
  * This is an interim value that we will use until the committee comes
  * up with a final number.
-- 
2.33.0


Re: [PATCH v3 01/30] elf: Add machine type value for LoongArch
Posted by Philippe Mathieu-Daudé 4 years, 2 months ago
On Wed, Sep 22, 2021 at 8:09 PM WANG Xuerui <git@xen0n.name> wrote:
>
> This is already officially allocated as recorded in GNU binutils
> repo [1], and the description is updated in [2]. Add to enable further
> work.
>
> [1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e
> [2]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3
>
> Signed-off-by: WANG Xuerui <git@xen0n.name>
> ---
>  include/elf.h | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Re: [PATCH v3 01/30] elf: Add machine type value for LoongArch
Posted by Richard Henderson 4 years, 2 months ago
On 9/22/21 11:08 AM, WANG Xuerui wrote:
> This is already officially allocated as recorded in GNU binutils
> repo [1], and the description is updated in [2]. Add to enable further
> work.
> 
> [1]:https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e
> [2]:https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3
> 
> Signed-off-by: WANG Xuerui<git@xen0n.name>
> ---
>   include/elf.h | 2 ++
>   1 file changed, 2 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~