This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] Adding MicroBlaze support to elf/elf.h
- From: David Holsgrove <david dot holsgrove at xilinx dot com>
- To: libc-alpha at sourceware dot org, libc-ports at sourceware dot org
- Cc: john dot williams at xilinx dot com, edgar dot iglesias at gmail dot com, vinodk at xilinx dot com, tshui at xilinx dot com, vidhum at xilinx dot com, nmekala at xilinx dot com
- Date: Thu, 29 Nov 2012 16:04:03 +1000
- Subject: [PATCH] Adding MicroBlaze support to elf/elf.h
- References: <CAM=EW8Y-tqvbZwtewup6UagcgJiHEtDmapEmoiR7ZW0SW_-pCg@mail.gmail.com>
From: David Holsgrove <david.holsgrove@petalogix.com>
Signed-off-by: David Holsgrove <david.holsgrove@petalogix.com>
---
elf/elf.h | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/elf/elf.h b/elf/elf.h
index b07e6ad..6a4a4cc 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -259,6 +259,8 @@ typedef struct
chances of collision with official or non-GNU unofficial values. */
#define EM_ALPHA 0x9026
+#define EM_NEW_MICROBLAZE 0xbd /* Xilinx MicroBlaze */
+#define EM_MICROBLAZE 0xbaab
/* Legal values for e_version (version). */
@@ -2847,6 +2849,37 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_M32R_GOTOFF_LO 64 /* Low 16 bit offset to GOT */
#define R_M32R_NUM 256 /* Keep this the last entry. */
+/* microblaze relocations */
+#define R_MICROBLAZE_NONE 0
+#define R_MICROBLAZE_32 1
+#define R_MICROBLAZE_32_PCREL 2
+#define R_MICROBLAZE_64_PCREL 3
+#define R_MICROBLAZE_32_PCREL_LO 4
+#define R_MICROBLAZE_64 5
+#define R_MICROBLAZE_32_LO 6
+#define R_MICROBLAZE_SRO32 7
+#define R_MICROBLAZE_SRW32 8
+#define R_MICROBLAZE_64_NONE 9
+#define R_MICROBLAZE_32_SYM_OP_SYM 10
+#define R_MICROBLAZE_GNU_VTINHERIT 11
+#define R_MICROBLAZE_GNU_VTENTRY 12
+#define R_MICROBLAZE_GOTPC_64 13
+#define R_MICROBLAZE_GOT_64 14
+#define R_MICROBLAZE_PLT_64 15
+#define R_MICROBLAZE_REL 16
+#define R_MICROBLAZE_JUMP_SLOT 17
+#define R_MICROBLAZE_GLOB_DAT 18
+#define R_MICROBLAZE_GOTOFF_64 19
+#define R_MICROBLAZE_GOTOFF_32 20
+#define R_MICROBLAZE_COPY 21
+#define R_MICROBLAZE_TLS 22
+#define R_MICROBLAZE_TLSGD 23
+#define R_MICROBLAZE_TLSLD 24
+#define R_MICROBLAZE_TLSDTPMOD32 25
+#define R_MICROBLAZE_TLSDTPREL32 26
+#define R_MICROBLAZE_TLSDTPREL64 27
+#define R_MICROBLAZE_TLSGOTTPREL32 28
+#define R_MICROBLAZE_TLSTPREL32 29
/* TILEPro relocations. */
#define R_TILEPRO_NONE 0 /* No reloc */
--
1.7.9.5