public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 2/3 elf] Add MicroBlaze support to elf.h
@ 2012-11-29  5:29 David Holsgrove
  2012-11-29  6:04 ` [PATCH] Adding MicroBlaze support to elf/elf.h David Holsgrove
  2012-11-29  7:16 ` [PATCH 2/3 elf] Add MicroBlaze support to elf.h Andreas Jaeger
  0 siblings, 2 replies; 10+ messages in thread
From: David Holsgrove @ 2012-11-29  5:29 UTC (permalink / raw)
  To: libc-alpha, libc-ports
  Cc: John Williams, Edgar E. Iglesias, Vinod Kathail, Tom Shui,
	Vidhumouli Hunsigida, Nagaraju Mekala

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

Add MicroBlaze relocations to elf/elf.h

2012-11-29  David Holsgrove  <david.holsgrove@xilinx.com>

        * elf/elf.h: Add support for MicroBlaze arch

[-- Attachment #2: 0002-Adding-MicroBlaze-support-to-elf-elf.h.patch --]
[-- Type: application/octet-stream, Size: 2034 bytes --]

From 02a0759b648b6aed4538cd0cde88babf5468585a Mon Sep 17 00:00:00 2001
From: David Holsgrove <david.holsgrove@petalogix.com>
Date: Wed, 4 Jan 2012 13:56:48 +1000
Subject: [PATCH] Adding MicroBlaze support to elf/elf.h

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-11-29 16:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29  5:29 [PATCH 2/3 elf] Add MicroBlaze support to elf.h David Holsgrove
2012-11-29  6:04 ` [PATCH] Adding MicroBlaze support to elf/elf.h David Holsgrove
2012-11-29  7:16 ` [PATCH 2/3 elf] Add MicroBlaze support to elf.h Andreas Jaeger
2012-11-29  7:58   ` Mike Frysinger
2012-11-29  8:04     ` Andreas Jaeger
2012-11-29  8:23       ` David Holsgrove
2012-11-29 16:06       ` Joseph S. Myers
2012-11-29 16:11         ` Carlos O'Donell
2012-11-29 16:20           ` Joseph S. Myers
2012-11-29  8:03   ` David Holsgrove

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).