diff options
author | Macpaul Lin <macpaul@andestech.com> | 2010-08-05 13:14:05 +0800 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-11 14:12:07 +0200 |
commit | 58662f2c9376b526029935492b84d5b5829dfb1e (patch) | |
tree | bd0bdc7f2210ab5c28ccb5d8e4882c3e0efa47a8 /modutils/modutils-24.c | |
parent | 1fbaf3a2d1f9abe1ee64acfc0927fdfedfdae998 (diff) | |
download | busybox-w32-58662f2c9376b526029935492b84d5b5829dfb1e.tar.gz busybox-w32-58662f2c9376b526029935492b84d5b5829dfb1e.tar.bz2 busybox-w32-58662f2c9376b526029935492b84d5b5829dfb1e.zip |
modutils: Add support for NDS32 architecture.
Add support of NDS32 architecture to modutils.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modutils-24.c')
-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) |