From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9118 invoked by alias); 29 Nov 2012 06:04:28 -0000 Received: (qmail 9107 invoked by uid 22791); 29 Nov 2012 06:04:27 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_XB X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 06:04:15 +0000 Received: by mail-pb0-f41.google.com with SMTP id xa7so10560546pbc.0 for ; Wed, 28 Nov 2012 22:04:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=KqyxCJI4IwQRsVVWi5+6/v+Xih3XV2fRYlV6XDzUcqk=; b=I/qBdcJcZRzfCqgn8frICSqK0MSIzbWQipungMLfuMQbEME8nNbhAGov3UXzTXpmTn hWzK0Min46OjFGO1+zGuErWL7m7B4BzH7n6172pWsxKhC58qDUX1hhaR5DTg6WxbyLt0 zcXxrMDVUtrTdgb0vfvv3hrVmNvSvip7BUFhLsDUKnQnQofJdzFbe1sVU9eDXN9b3zzj kvAQYVpgNYXhy9gQ3euQXC9I1AEDFvfYlLQxpnQcWmt/wlCV0yawcNOk1Pn+mztdDsV1 f2EKguAhY/6NdQAFM2B16VolU+yRcbVv26qS9ec+E8XWe/A8CYaxwjjnSMxyirQBZ9Gt aafA== Received: by 10.68.202.72 with SMTP id kg8mr65783385pbc.134.1354169054569; Wed, 28 Nov 2012 22:04:14 -0800 (PST) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id sz6sm678304pbc.52.2012.11.28.22.04.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 22:04:13 -0800 (PST) From: David Holsgrove To: libc-alpha@sourceware.org, libc-ports@sourceware.org Cc: john.williams@xilinx.com, edgar.iglesias@gmail.com, vinodk@xilinx.com, tshui@xilinx.com, vidhum@xilinx.com, nmekala@xilinx.com Subject: [PATCH] Adding MicroBlaze support to elf/elf.h Date: Thu, 29 Nov 2012 06:04:00 -0000 Message-Id: <1354169043-4782-1-git-send-email-david.holsgrove@xilinx.com> In-Reply-To: References: X-Gm-Message-State: ALoCoQlmhN4aOz7PBWb2OG5ImUco0yugFLN3sggvtQCGYHT5GPv40RlHzj1d3GDxjV8qyyc1Vxx5 X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00125.txt.bz2 From: David Holsgrove Signed-off-by: David Holsgrove --- 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