blob: 4b91ddd0120a407d9848f2c03b19df7332cf3b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Machine-specific elf macros for MIPS. */
#define ELFCLASSM ELFCLASS32
#ifdef __MIPSEB__
#define ELFDATAM ELFDATA2MSB
#endif
#ifdef __MIPSEL__
#define ELFDATAM ELFDATA2LSB
#endif
/* Account for ELF spec changes. */
#ifndef EM_MIPS_RS3_LE
#ifdef EM_MIPS_RS4_BE
#define EM_MIPS_RS3_LE EM_MIPS_RS4_BE
#else
#define EM_MIPS_RS3_LE 10
#endif
#endif /* !EM_MIPS_RS3_LE */
#define MATCH_MACHINE(x) (x == EM_MIPS || x == EM_MIPS_RS3_LE)
#define SHT_RELM SHT_REL
#define Elf32_RelM Elf32_Rel
|