blob: 8a0430216408a84b1e80953d7d08a280f4806e6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Machine-specific elf macros for MIPS. */
#ident "$Id$"
#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
|