diff options
author | Mikael Starvik <mikael.starvik@axis.com> | 2005-07-27 14:44:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:25:59 -0400 |
commit | cb09f540a1c5e6c5beb6e82f554d51a1f2c87e67 (patch) | |
tree | 869d0be20eb950ea64b7fdcfcbb07082f173cfae /include/asm-cris/elf.h | |
parent | e1637f437f1a2e552e0572e02d46e2c395a4ecaf (diff) |
[PATCH] CRIS update: arch split
Changes necessary to make the sub-arch split complete.
Signed-off-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/elf.h')
-rw-r--r-- | include/asm-cris/elf.h | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/include/asm-cris/elf.h b/include/asm-cris/elf.h index d37fd5c4a567..87a60bd8e667 100644 --- a/include/asm-cris/elf.h +++ b/include/asm-cris/elf.h | |||
@@ -8,6 +8,27 @@ | |||
8 | #include <asm/arch/elf.h> | 8 | #include <asm/arch/elf.h> |
9 | #include <asm/user.h> | 9 | #include <asm/user.h> |
10 | 10 | ||
11 | #define R_CRIS_NONE 0 | ||
12 | #define R_CRIS_8 1 | ||
13 | #define R_CRIS_16 2 | ||
14 | #define R_CRIS_32 3 | ||
15 | #define R_CRIS_8_PCREL 4 | ||
16 | #define R_CRIS_16_PCREL 5 | ||
17 | #define R_CRIS_32_PCREL 6 | ||
18 | #define R_CRIS_GNU_VTINHERIT 7 | ||
19 | #define R_CRIS_GNU_VTENTRY 8 | ||
20 | #define R_CRIS_COPY 9 | ||
21 | #define R_CRIS_GLOB_DAT 10 | ||
22 | #define R_CRIS_JUMP_SLOT 11 | ||
23 | #define R_CRIS_RELATIVE 12 | ||
24 | #define R_CRIS_16_GOT 13 | ||
25 | #define R_CRIS_32_GOT 14 | ||
26 | #define R_CRIS_16_GOTPLT 15 | ||
27 | #define R_CRIS_32_GOTPLT 16 | ||
28 | #define R_CRIS_32_GOTREL 17 | ||
29 | #define R_CRIS_32_PLT_GOTREL 18 | ||
30 | #define R_CRIS_32_PLT_PCREL 19 | ||
31 | |||
11 | typedef unsigned long elf_greg_t; | 32 | typedef unsigned long elf_greg_t; |
12 | 33 | ||
13 | /* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is | 34 | /* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is |
@@ -19,17 +40,29 @@ typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | |||
19 | typedef unsigned long elf_fpregset_t; | 40 | typedef unsigned long elf_fpregset_t; |
20 | 41 | ||
21 | /* | 42 | /* |
22 | * This is used to ensure we don't load something for the wrong architecture. | ||
23 | */ | ||
24 | #define elf_check_arch(x) ( (x)->e_machine == EM_CRIS ) | ||
25 | |||
26 | /* | ||
27 | * These are used to set parameters in the core dumps. | 43 | * These are used to set parameters in the core dumps. |
28 | */ | 44 | */ |
29 | #define ELF_CLASS ELFCLASS32 | 45 | #define ELF_CLASS ELFCLASS32 |
30 | #define ELF_DATA ELFDATA2LSB; | 46 | #define ELF_DATA ELFDATA2LSB |
31 | #define ELF_ARCH EM_CRIS | 47 | #define ELF_ARCH EM_CRIS |
32 | 48 | ||
49 | /* The master for these definitions is {binutils}/include/elf/cris.h: */ | ||
50 | /* User symbols in this file have a leading underscore. */ | ||
51 | #define EF_CRIS_UNDERSCORE 0x00000001 | ||
52 | |||
53 | /* This is a mask for different incompatible machine variants. */ | ||
54 | #define EF_CRIS_VARIANT_MASK 0x0000000e | ||
55 | |||
56 | /* Variant 0; may contain v0..10 object. */ | ||
57 | #define EF_CRIS_VARIANT_ANY_V0_V10 0x00000000 | ||
58 | |||
59 | /* Variant 1; contains v32 object. */ | ||
60 | #define EF_CRIS_VARIANT_V32 0x00000002 | ||
61 | |||
62 | /* Variant 2; contains object compatible with v32 and v10. */ | ||
63 | #define EF_CRIS_VARIANT_COMMON_V10_V32 0x00000004 | ||
64 | /* End of excerpt from {binutils}/include/elf/cris.h. */ | ||
65 | |||
33 | #define USE_ELF_CORE_DUMP | 66 | #define USE_ELF_CORE_DUMP |
34 | 67 | ||
35 | #define ELF_EXEC_PAGESIZE 8192 | 68 | #define ELF_EXEC_PAGESIZE 8192 |