18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#include "relocs.h"
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#define ELF_BITS 32
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#define ELF_MACHINE		EM_LOONGARCH
78c2ecf20Sopenharmony_ci#define ELF_MACHINE_NAME	"LOONGARCH32"
88c2ecf20Sopenharmony_ci#define SHT_REL_TYPE		SHT_RELA
98c2ecf20Sopenharmony_ci#define Elf_Rel			ElfW(Rela)
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define ELF_CLASS		ELFCLASS32
128c2ecf20Sopenharmony_ci#define ELF_R_SYM(val)		ELF32_R_SYM(val)
138c2ecf20Sopenharmony_ci#define ELF_R_TYPE(val)		ELF32_R_TYPE(val)
148c2ecf20Sopenharmony_ci#define ELF_ST_TYPE(o)		ELF32_ST_TYPE(o)
158c2ecf20Sopenharmony_ci#define ELF_ST_BIND(o)		ELF32_ST_BIND(o)
168c2ecf20Sopenharmony_ci#define ELF_ST_VISIBILITY(o)	ELF32_ST_VISIBILITY(o)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#include "relocs.c"
19