162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci#include "relocs.h" 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#define ELF_BITS 32 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#define ELF_MACHINE EM_386 762306a36Sopenharmony_ci#define ELF_MACHINE_NAME "i386" 862306a36Sopenharmony_ci#define SHT_REL_TYPE SHT_REL 962306a36Sopenharmony_ci#define Elf_Rel ElfW(Rel) 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define ELF_CLASS ELFCLASS32 1262306a36Sopenharmony_ci#define ELF_R_SYM(val) ELF32_R_SYM(val) 1362306a36Sopenharmony_ci#define ELF_R_TYPE(val) ELF32_R_TYPE(val) 1462306a36Sopenharmony_ci#define ELF_ST_TYPE(o) ELF32_ST_TYPE(o) 1562306a36Sopenharmony_ci#define ELF_ST_BIND(o) ELF32_ST_BIND(o) 1662306a36Sopenharmony_ci#define ELF_ST_VISIBILITY(o) ELF32_ST_VISIBILITY(o) 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#include "relocs.c" 19