summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2016-04-20 13:17:31 +0200
committerRich Felker <dalias@aerifal.cx>2016-07-03 16:15:11 -0400
commit347d0617d11c0ae4c5e501d4232d2b4a5cfc207a (patch)
treedc8377abc7a7eacd36dc547764e38090b4890643 /include
parentabbdf0f51d975a1120483a7bdaf92d65663a4f37 (diff)
downloadmusl-347d0617d11c0ae4c5e501d4232d2b4a5cfc207a.tar.gz
musl-347d0617d11c0ae4c5e501d4232d2b4a5cfc207a.tar.bz2
musl-347d0617d11c0ae4c5e501d4232d2b4a5cfc207a.tar.xz
musl-347d0617d11c0ae4c5e501d4232d2b4a5cfc207a.zip
add nios2 definitions to elf.h
Diffstat (limited to 'include')
-rw-r--r--include/elf.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 3a68b527..94f2cd9a 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -213,6 +213,7 @@ typedef struct {
#define EM_OPENRISC 92
#define EM_ARC_A5 93
#define EM_XTENSA 94
+#define EM_ALTERA_NIOS2 113
#define EM_AARCH64 183
#define EM_TILEPRO 188
#define EM_MICROBLAZE 189
@@ -2880,6 +2881,55 @@ enum
#define R_MICROBLAZE_TLSGOTTPREL32 28
#define R_MICROBLAZE_TLSTPREL32 29
+#define DT_NIOS2_GP 0x70000002
+
+#define R_NIOS2_NONE 0
+#define R_NIOS2_S16 1
+#define R_NIOS2_U16 2
+#define R_NIOS2_PCREL16 3
+#define R_NIOS2_CALL26 4
+#define R_NIOS2_IMM5 5
+#define R_NIOS2_CACHE_OPX 6
+#define R_NIOS2_IMM6 7
+#define R_NIOS2_IMM8 8
+#define R_NIOS2_HI16 9
+#define R_NIOS2_LO16 10
+#define R_NIOS2_HIADJ16 11
+#define R_NIOS2_BFD_RELOC_32 12
+#define R_NIOS2_BFD_RELOC_16 13
+#define R_NIOS2_BFD_RELOC_8 14
+#define R_NIOS2_GPREL 15
+#define R_NIOS2_GNU_VTINHERIT 16
+#define R_NIOS2_GNU_VTENTRY 17
+#define R_NIOS2_UJMP 18
+#define R_NIOS2_CJMP 19
+#define R_NIOS2_CALLR 20
+#define R_NIOS2_ALIGN 21
+#define R_NIOS2_GOT16 22
+#define R_NIOS2_CALL16 23
+#define R_NIOS2_GOTOFF_LO 24
+#define R_NIOS2_GOTOFF_HA 25
+#define R_NIOS2_PCREL_LO 26
+#define R_NIOS2_PCREL_HA 27
+#define R_NIOS2_TLS_GD16 28
+#define R_NIOS2_TLS_LDM16 29
+#define R_NIOS2_TLS_LDO16 30
+#define R_NIOS2_TLS_IE16 31
+#define R_NIOS2_TLS_LE16 32
+#define R_NIOS2_TLS_DTPMOD 33
+#define R_NIOS2_TLS_DTPREL 34
+#define R_NIOS2_TLS_TPREL 35
+#define R_NIOS2_COPY 36
+#define R_NIOS2_GLOB_DAT 37
+#define R_NIOS2_JUMP_SLOT 38
+#define R_NIOS2_RELATIVE 39
+#define R_NIOS2_GOTOFF 40
+#define R_NIOS2_CALL26_NOAT 41
+#define R_NIOS2_GOT_LO 42
+#define R_NIOS2_GOT_HA 43
+#define R_NIOS2_CALL_LO 44
+#define R_NIOS2_CALL_HA 45
+
#define R_OR1K_NONE 0
#define R_OR1K_32 1
#define R_OR1K_16 2