Linux SNPS ARC Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
To: libc-alpha@sourceware.org
Cc: Vineet Gupta <Vineet.Gupta1@synopsys.com>,
	linux-snps-arc@lists.infradead.org
Subject: [PATCH v3 02/17] ARC: add definitions to elf/elf.h
Date: Fri,  6 Mar 2020 10:24:04 -0800	[thread overview]
Message-ID: <20200306182419.13945-3-vgupta@synopsys.com> (raw)
In-Reply-To: <20200306182419.13945-1-vgupta@synopsys.com>

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 elf/elf.h | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 69 insertions(+), 1 deletion(-)

diff --git a/elf/elf.h b/elf/elf.h
index ab8930463c67..51e9968405ff 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -330,7 +330,7 @@ typedef struct
 #define EM_CLOUDSHIELD	192	/* CloudShield */
 #define EM_COREA_1ST	193	/* KIPO-KAIST Core-A 1st gen. */
 #define EM_COREA_2ND	194	/* KIPO-KAIST Core-A 2nd gen. */
-#define EM_ARC_COMPACT2	195	/* Synopsys ARCompact V2 */
+#define EM_ARCV2	195	/* Synopsys ARCv2 ISA.  */
 #define EM_OPEN8	196	/* Open8 RISC */
 #define EM_RL78		197	/* Renesas RL78 */
 #define EM_VIDEOCORE5	198	/* Broadcom VideoCore V */
@@ -4028,6 +4028,74 @@ enum
 #define R_NDS32_TLS_TPOFF	102
 #define R_NDS32_TLS_DESC	119
 
+/* ARCompact/ARCv2 specific relocs.  */
+#define R_ARC_NONE		0x0
+#define R_ARC_8			0x1
+#define R_ARC_16		0x2
+#define R_ARC_24		0x3
+#define R_ARC_32		0x4
+#define R_ARC_B26		0x5
+#define R_ARC_B22_PCREL		0x6
+#define R_ARC_H30		0x7
+#define R_ARC_N8		0x8
+#define R_ARC_N16		0x9
+#define R_ARC_N24		0xA
+#define R_ARC_N32		0xB
+#define R_ARC_SDA		0xC
+#define R_ARC_SECTOFF		0xD
+#define R_ARC_S21H_PCREL	0xE
+#define R_ARC_S21W_PCREL	0xF
+#define R_ARC_S25H_PCREL	0x10
+#define R_ARC_S25W_PCREL	0x11
+#define R_ARC_SDA32		0x12
+#define R_ARC_SDA_LDST		0x13
+#define R_ARC_SDA_LDST1		0x14
+#define R_ARC_SDA_LDST2		0x15
+#define R_ARC_SDA16_LD		0x16
+#define R_ARC_SDA16_LD1		0x17
+#define R_ARC_SDA16_LD2		0x18
+#define R_ARC_S13_PCREL		0x19
+#define R_ARC_W			0x1A
+#define R_ARC_32_ME		0x1B
+#define R_ARC_N32_ME		0x1C
+#define R_ARC_SECTOFF_ME	0x1D
+#define R_ARC_SDA32_ME		0x1E
+#define R_ARC_W_ME		0x1F
+#define R_ARC_H30_ME		0x20
+#define R_ARC_SECTOFF_U8	0x21
+#define R_ARC_SECTOFF_S9	0x22
+#define R_AC_SECTOFF_U8		0x23
+#define R_AC_SECTOFF_U8_1	0x24
+#define R_AC_SECTOFF_U8_2	0x25
+#define R_AC_SECTOFF_S9		0x26
+#define R_AC_SECTOFF_S9_1	0x27
+#define R_AC_SECTOFF_S9_2	0x28
+#define R_ARC_SECTOFF_ME_1	0x29
+#define R_ARC_SECTOFF_ME_2	0x2A
+#define R_ARC_SECTOFF_1		0x2B
+#define R_ARC_SECTOFF_2		0x2C
+#define R_ARC_PC32		0x32
+#define R_ARC_GOTPC32		0x33
+#define R_ARC_PLT32		0x34
+#define R_ARC_COPY		0x35
+#define R_ARC_GLOB_DAT		0x36
+#define R_ARC_JUMP_SLOT		0x37
+#define R_ARC_RELATIVE		0x38
+#define R_ARC_GOTOFF		0x39
+#define R_ARC_GOTPC		0x3A
+#define R_ARC_GOT32		0x3B
+
+#define R_ARC_TLS_DTPMOD	0x42
+#define R_ARC_TLS_DTPOFF	0x43
+#define R_ARC_TLS_TPOFF		0x44
+#define R_ARC_TLS_GD_GOT	0x45
+#define R_ARC_TLS_GD_LD	        0x46
+#define R_ARC_TLS_GD_CALL	0x47
+#define R_ARC_TLS_IE_GOT	0x48
+#define R_ARC_TLS_DTPOFF_S9	0x4a
+#define R_ARC_TLS_LE_S9		0x4a
+#define R_ARC_TLS_LE_32		0x4b
+
 __END_DECLS
 
 #endif	/* elf.h */
-- 
2.20.1


_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

  parent reply	other threads:[~2020-03-06 18:24 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06 18:24 [PATCH v3 00/17] glibc port to ARC processors Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 01/17] gcc PR 88409: miscompilation due to missing cc clobber in longlong.h macros Vineet Gupta
2020-03-07  0:12   ` Joseph Myers
2020-03-07  0:21     ` Vineet Gupta
2020-03-10 17:23       ` sourceware account access (was Re: [PATCH v3 01/17] gcc PR 88409: miscompilation due to missing cc clobber in longlong.h macros) Vineet Gupta
2020-03-10 17:57         ` Carlos O'Donell
2020-03-10 18:08           ` sourceware account access Vineet Gupta
2020-03-10 18:10             ` Carlos O'Donell
2020-03-11  2:00     ` [PATCH v3 01/17] gcc PR 88409: miscompilation due to missing cc clobber in longlong.h macros Vineet Gupta
     [not found]   ` <d3d2969f-4370-588b-b9be-a9ae0d38e10e@openwall.com>
2020-03-09 23:38     ` Vineet Gupta
2020-03-06 18:24 ` Vineet Gupta [this message]
2020-03-06 18:24 ` [PATCH v3 03/17] ARC: ABI Implementation Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 04/17] ARC: startup and dynamic linking code Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 05/17] ARC: Thread Local Storage support Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 06/17] ARC: Atomics and Locking primitives Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 07/17] ARC: math soft float support Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 08/17] ARC: hardware floating point support Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 09/17] ARC: Linux Syscall Interface Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 10/17] ARC: Linux ABI Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 11/17] ARC: Linux Startup and Dynamic Loading Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 12/17] ARC: ABI lists Vineet Gupta
2020-03-07 15:20   ` Florian Weimer
2020-03-08  5:45     ` Vineet Gupta
2020-03-09  9:14       ` Florian Weimer
2020-03-06 18:24 ` [PATCH v3 13/17] ARC: Update syscall-names.list for ARC specific syscalls Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 14/17] ARC: Build Infrastructure Vineet Gupta
2020-03-07  0:16   ` Joseph Myers
2020-03-07  0:24     ` Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 15/17] build-many-glibcs.py: Enable ARC builds Vineet Gupta
2020-03-06 18:24 ` [PATCH v3 16/17] NEWS: mention ARC port Vineet Gupta
2020-03-07  0:14   ` Joseph Myers
2020-03-07  0:55     ` Vineet Gupta
2020-03-07  1:08       ` Joseph Myers
2020-03-07  1:26         ` Vineet Gupta
2020-03-07  1:29           ` Joseph Myers
2020-03-06 18:24 ` [PATCH v3 17/17] ARC: changes to enable 64-bit time_t, off_t, ino_t etc Vineet Gupta
2020-03-07  0:19   ` Joseph Myers
2020-03-07  0:37     ` Vineet Gupta
2020-03-07  0:21 ` [PATCH v3 00/17] glibc port to ARC processors Joseph Myers
2020-03-07  0:57   ` Vineet Gupta
2020-03-07  1:10     ` Joseph Myers
2020-03-12 21:23       ` Vineet Gupta
2020-03-12 21:46         ` Joseph Myers
2020-03-23 18:20           ` Vineet Gupta

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=20200306182419.13945-3-vgupta@synopsys.com \
    --to=vineet.gupta1@synopsys.com \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-snps-arc@lists.infradead.org \
    /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