]>
Commit | Line | Data |
---|---|---|
71007e92 JR |
1 | --- busybox-1.2.0/modutils/modutils-24.c.orig 2006-07-01 00:42:04.000000000 +0200 |
2 | +++ busybox-1.2.0/modutils/modutils-24.c 2006-07-20 19:42:23.188629500 +0200 | |
608b7974 | 3 | @@ -249,7 +249,17 @@ |
0475f5b4 | 4 | #endif |
8feff577 | 5 | |
608b7974 JB |
6 | /* S390 */ |
7 | -#if defined(__s390__) | |
8 | +#if defined(__s390x__) | |
9 | +#define MATCH_MACHINE(x) (x == EM_S390) | |
10 | +#define SHT_RELM SHT_RELA | |
11 | +#define Elf64_RelM Elf64_Rela | |
12 | +#define ELFCLASSM ELFCLASS64 | |
13 | +#define CONFIG_USE_PLT_ENTRIES | |
14 | +#define CONFIG_PLT_ENTRY_SIZE 8 | |
15 | +#define CONFIG_USE_GOT_ENTRIES | |
16 | +#define CONFIG_GOT_ENTRY_SIZE 8 | |
17 | +#define CONFIG_USE_SINGLE | |
18 | +#elif defined(__s390__) | |
19 | #define MATCH_MACHINE(x) (x == EM_S390) | |
20 | #define SHT_RELM SHT_RELA | |
21 | #define Elf32_RelM Elf32_Rela | |
22 | @@ -283,10 +293,17 @@ | |
23 | ||
24 | /* Sparc */ | |
25 | #if defined(__sparc__) | |
26 | +# if defined(__arch64__) | |
7de3c0af | 27 | +#define MATCH_MACHINE(x) (x == EM_SPARCV9) |
608b7974 JB |
28 | +#define SHT_RELM SHT_RELA |
29 | +#define Elf64_RelM Elf64_Rela | |
30 | +#define ELFCLASSM ELFCLASS64 | |
31 | +# else | |
32 | #define MATCH_MACHINE(x) (x == EM_SPARC) | |
33 | #define SHT_RELM SHT_RELA | |
34 | #define Elf32_RelM Elf32_Rela | |
35 | #define ELFCLASSM ELFCLASS32 | |
36 | +# endif | |
0475f5b4 | 37 | #endif |
608b7974 JB |
38 | |
39 | /* v850e */ |