diff options
author | Macpaul Lin <macpaul@andestech.com> | 2010-08-05 09:14:05 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-11 16:12:07 +0400 |
commit | 58662f2c9376b526029935492b84d5b5829dfb1e (patch) | |
tree | bd0bdc7f2210ab5c28ccb5d8e4882c3e0efa47a8 /modutils | |
parent | 1fbaf3a2d1f9abe1ee64acfc0927fdfedfdae998 (diff) |
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')
-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 @@ #define USE_SINGLE #endif +/* NDS32 support */ +#if defined(__nds32__) || defined(__NDS32__) +#define CONFIG_USE_GOT_ENTRIES +#define CONFIG_GOT_ENTRY_SIZE 4 +#define CONFIG_USE_SINGLE + +#if defined(__NDS32_EB__) +#define MATCH_MACHINE(x) (x == EM_NDS32) +#define SHT_RELM SHT_RELA +#define Elf32_RelM Elf32_Rela +#define ELFCLASSM ELFCLASS32 +#endif + +#if defined(__NDS32_EL__) +#define MATCH_MACHINE(x) (x == EM_NDS32) +#define SHT_RELM SHT_RELA +#define Elf32_RelM Elf32_Rela +#define ELFCLASSM ELFCLASS32 +#endif +#endif + /* blackfin */ #if defined(BFIN) #define MATCH_MACHINE(x) (x == EM_BLACKFIN) |