diff options
-rw-r--r-- | modutils/modutils-24.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c index 7f39e253d..c42d3c0bb 100644 --- a/modutils/modutils-24.c +++ b/modutils/modutils-24.c | |||
@@ -90,6 +90,27 @@ | |||
90 | #define USE_SINGLE | 90 | #define USE_SINGLE |
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | /* NDS32 support */ | ||
94 | #if defined(__nds32__) || defined(__NDS32__) | ||
95 | #define CONFIG_USE_GOT_ENTRIES | ||
96 | #define CONFIG_GOT_ENTRY_SIZE 4 | ||
97 | #define CONFIG_USE_SINGLE | ||
98 | |||
99 | #if defined(__NDS32_EB__) | ||
100 | #define MATCH_MACHINE(x) (x == EM_NDS32) | ||
101 | #define SHT_RELM SHT_RELA | ||
102 | #define Elf32_RelM Elf32_Rela | ||
103 | #define ELFCLASSM ELFCLASS32 | ||
104 | #endif | ||
105 | |||
106 | #if defined(__NDS32_EL__) | ||
107 | #define MATCH_MACHINE(x) (x == EM_NDS32) | ||
108 | #define SHT_RELM SHT_RELA | ||
109 | #define Elf32_RelM Elf32_Rela | ||
110 | #define ELFCLASSM ELFCLASS32 | ||
111 | #endif | ||
112 | #endif | ||
113 | |||
93 | /* blackfin */ | 114 | /* blackfin */ |
94 | #if defined(BFIN) | 115 | #if defined(BFIN) |
95 | #define MATCH_MACHINE(x) (x == EM_BLACKFIN) | 116 | #define MATCH_MACHINE(x) (x == EM_BLACKFIN) |