public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: David Holsgrove <david.holsgrove@xilinx.com>
To: <libc-alpha@sourceware.org>, <libc-ports@sourceware.org>
Cc: <joseph@codesourcery.com>, <david.holsgrove@xilinx.com>,
	<john.williams@xilinx.com>, <edgar.iglesias@xilinx.com>,
	<vinod.kathail@xilinx.com>, <vidhumouli.hunsigida@xilinx.com>,
	<nagaraju.mekala@xilinx.com>, <tom.shui@xilinx.com>
Subject: [PATCH v2 1/2] Add MicroBlaze support to elf/elf.h
Date: Sat, 30 Mar 2013 14:30:00 -0000	[thread overview]
Message-ID: <d7a1734f-3dae-4834-9c90-ea40f4db0755@CO1EHSMHS011.ehs.local> (raw)
In-Reply-To: <1364652885-28535-1-git-send-email-david.holsgrove@xilinx.com>

Changelog

2013-03-30  David Holsgrove  <david.holsgrove@xilinx.com>

	* elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
---
 elf/elf.h |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/elf/elf.h b/elf/elf.h
index d096a97..4adfd63 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -251,6 +251,7 @@ typedef struct
 #define EM_XTENSA	94		/* Tensilica Xtensa Architecture */
 #define EM_AARCH64	183		/* ARM AARCH64 */
 #define EM_TILEPRO	188		/* Tilera TILEPro */
+#define EM_MICROBLAZE	189		/* Xilinx MicroBlaze 32-bit RISC soft processor core */
 #define EM_TILEGX	191		/* Tilera TILE-Gx */
 #define EM_NUM		192
 
@@ -2955,6 +2956,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	/* No reloc. */
+#define R_MICROBLAZE_32 		1	/* Direct 32 bit. */
+#define R_MICROBLAZE_32_PCREL		2	/* PC relative 32 bit. */
+#define R_MICROBLAZE_64_PCREL		3	/* PC relative 64 bit. */
+#define R_MICROBLAZE_32_PCREL_LO	4	/* Low 16 bits of PCREL32. */
+#define R_MICROBLAZE_64 		5	/* Direct 64 bit. */
+#define R_MICROBLAZE_32_LO		6	/* Low 16 bit. */
+#define R_MICROBLAZE_SRO32		7	/* Read-only small data area. */
+#define R_MICROBLAZE_SRW32		8	/* Read-write small data area. */
+#define R_MICROBLAZE_64_NONE		9	/* No reloc. */
+#define R_MICROBLAZE_32_SYM_OP_SYM	10	/* Symbol Op Symbol relocation. */
+#define R_MICROBLAZE_GNU_VTINHERIT	11	/* GNU C++ vtable hierarchy. */
+#define R_MICROBLAZE_GNU_VTENTRY	12	/* GNU C++ vtable member usage. */
+#define R_MICROBLAZE_GOTPC_64		13	/* PC-relative GOT offset.  */
+#define R_MICROBLAZE_GOT_64		14	/* GOT entry offset.  */
+#define R_MICROBLAZE_PLT_64		15	/* PLT offset (PC-relative).  */
+#define R_MICROBLAZE_REL		16	/* Adjust by program base.  */
+#define R_MICROBLAZE_JUMP_SLOT		17	/* Create PLT entry.  */
+#define R_MICROBLAZE_GLOB_DAT		18	/* Create GOT entry.  */
+#define R_MICROBLAZE_GOTOFF_64		19	/* 64 bit offset to GOT. */
+#define R_MICROBLAZE_GOTOFF_32		20	/* 32 bit offset to GOT. */
+#define R_MICROBLAZE_COPY		21	/* Runtime copy.  */
+#define R_MICROBLAZE_TLS		22	/* TLS Reloc. */
+#define R_MICROBLAZE_TLSGD		23	/* TLS General Dynamic. */
+#define R_MICROBLAZE_TLSLD		24	/* TLS Local Dynamic. */
+#define R_MICROBLAZE_TLSDTPMOD32	25	/* TLS Module ID. */
+#define R_MICROBLAZE_TLSDTPREL32	26	/* TLS Offset Within TLS Block. */
+#define R_MICROBLAZE_TLSDTPREL64	27	/* TLS Offset Within TLS Block. */
+#define R_MICROBLAZE_TLSGOTTPREL32	28	/* TLS Offset From Thread Pointer. */
+#define R_MICROBLAZE_TLSTPREL32 	29	/* TLS Offset From Thread Pointer. */
 
 /* TILEPro relocations.  */
 #define R_TILEPRO_NONE		0	/* No reloc */
-- 
1.7.0.4


       reply	other threads:[~2013-03-30 14:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1364652885-28535-1-git-send-email-david.holsgrove@xilinx.com>
2013-03-30 14:30 ` David Holsgrove [this message]
2013-04-08 22:15   ` Roland McGrath
2013-04-09  7:41     ` David Holsgrove
2013-04-11 20:25       ` Roland McGrath
2013-04-12  0:33         ` David Holsgrove
2013-03-30 14:31 ` [PATCH v2 2/2] Add MicroBlaze Port David Holsgrove
2013-04-02 23:49   ` Joseph S. Myers
2013-04-09  8:20     ` David Holsgrove
2013-04-09  8:32       ` Andreas Schwab
2013-04-11  7:58         ` David Holsgrove
2013-04-16  0:51         ` David Holsgrove
2013-04-17  0:18         ` David Holsgrove
2013-04-17  7:47           ` Andreas Schwab
2013-04-18  7:23             ` David Holsgrove

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d7a1734f-3dae-4834-9c90-ea40f4db0755@CO1EHSMHS011.ehs.local \
    --to=david.holsgrove@xilinx.com \
    --cc=edgar.iglesias@xilinx.com \
    --cc=john.williams@xilinx.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-ports@sourceware.org \
    --cc=nagaraju.mekala@xilinx.com \
    --cc=tom.shui@xilinx.com \
    --cc=vidhumouli.hunsigida@xilinx.com \
    --cc=vinod.kathail@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).