]>
Commit | Line | Data |
---|---|---|
8feff577 JB |
1 | --- busybox-1.00-pre10/modutils/insmod.c.orig Tue Apr 6 13:56:26 2004 |
2 | +++ busybox-1.00-pre10/modutils/insmod.c Fri May 14 16:39:38 2004 | |
3 | @@ -248,6 +248,36 @@ | |
4 | #define ELFCLASSM ELFCLASS32 | |
0475f5b4 | 5 | #endif |
8feff577 | 6 | |
0475f5b4 JB |
7 | +#if defined(__alpha__) |
8 | +#define ELFCLASSM ELFCLASS64 | |
9 | +#define ELFDATAM ELFDATA2LSB | |
10 | +#define MATCH_MACHINE(x) (x == EM_ALPHA) | |
11 | +#define SHT_RELM SHT_RELA | |
12 | +#define Elf64_RelM Elf64_Rela | |
13 | +#endif | |
14 | + | |
15 | +#if defined(__sparc64__) || defined(__sparcv9__) | |
16 | +#define ELFCLASSM ELFCLASS64 | |
17 | +#define ELFDATAM ELFDATA2MSB | |
18 | +#define MATCH_MACHINE(x) ((x) == EM_SPARCV9 || (x) == EM_SPARC64) | |
19 | +#define SHT_RELM SHT_RELA | |
20 | +#define Elf64_RelM Elf64_Rela | |
21 | +#elif defined(__sparc__) | |
22 | +#define ELFCLASSM ELFCLASS32 | |
23 | +#define ELFDATAM ELFDATA2MSB | |
24 | +#define MATCH_MACHINE(x) (x == EM_SPARC) | |
25 | +#define SHT_RELM SHT_RELA | |
26 | +#define Elf32_RelM Elf32_Rela | |
27 | +#endif | |
8feff577 JB |
28 | + |
29 | +#if defined(__x86_64__) | |
30 | +#define ELFCLASSM ELFCLASS64 | |
31 | +#define ELFDATAM ELFDATA2LSB | |
32 | +#define MATCH_MACHINE(x) (x == EM_X86_64) | |
33 | +#define SHT_RELM SHT_RELA | |
34 | +#define Elf64_RelM Elf64_Rela | |
35 | +#endif | |
0475f5b4 JB |
36 | + |
37 | #ifndef SHT_RELM | |
38 | #error Sorry, but insmod.c does not yet support this architecture... | |
39 | #endif |