18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#include "relocs.h"
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#define ELF_BITS 64
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#define ELF_MACHINE             EM_LOONGARCH
78c2ecf20Sopenharmony_ci#define ELF_MACHINE_NAME        "LOONGARCH64"
88c2ecf20Sopenharmony_ci#define SHT_REL_TYPE            SHT_RELA
98c2ecf20Sopenharmony_ci#define Elf_Rel                 Elf64_Rela
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define ELF_CLASS               ELFCLASS64
128c2ecf20Sopenharmony_ci#define ELF_R_SYM(val)          ELF64_R_SYM(val)
138c2ecf20Sopenharmony_ci#define ELF_R_TYPE(val)         ELF64_R_TYPE(val)
148c2ecf20Sopenharmony_ci#define ELF_ST_TYPE(o)          ELF64_ST_TYPE(o)
158c2ecf20Sopenharmony_ci#define ELF_ST_BIND(o)          ELF64_ST_BIND(o)
168c2ecf20Sopenharmony_ci#define ELF_ST_VISIBILITY(o)    ELF64_ST_VISIBILITY(o)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#include "relocs.c"
19