From: Miles Bader <miles@lsi.nec.co.jp>
To: Greg Ungerer <gerg@snapgear.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] v850 additions to include/linux/elf.h
Date: 26 Nov 2002 16:49:31 +0900 [thread overview]
Message-ID: <buoel987otw.fsf_-_@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <20021015181609.A31647@infradead.org>
[-- Attachment #1: Type: text/plain, Size: 112 bytes --]
Hi,
This patch adds more stuff to include/linux/elf.h for the v850 (used by
the new module loader).
Patch:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: v850-elfdefs-20021126.patch --]
[-- Type: text/x-patch, Size: 1529 bytes --]
diff -ruN -X../cludes ../orig/linux-2.5.49-uc0/include/linux/elf.h include/linux/elf.h
--- ../orig/linux-2.5.49-uc0/include/linux/elf.h 2002-11-25 10:34:44.000000000 +0900
+++ include/linux/elf.h 2002-11-26 11:10:41.000000000 +0900
@@ -92,6 +92,9 @@
*/
#define EM_ALPHA 0x9026
+/* Bogus old v850 magic number, used by old tools. */
+#define EM_CYGNUS_V850 0x9080
+
/*
* This is the old interim value for S/390 architecture
*/
@@ -450,6 +453,31 @@
/* Keep this the last entry. */
#define R_390_NUM 27
+
+/* v850 relocations. */
+#define R_V850_NONE 0
+#define R_V850_9_PCREL 1
+#define R_V850_22_PCREL 2
+#define R_V850_HI16_S 3
+#define R_V850_HI16 4
+#define R_V850_LO16 5
+#define R_V850_32 6
+#define R_V850_16 7
+#define R_V850_8 8
+#define R_V850_SDA_16_16_OFFSET 9 /* For ld.b, st.b, set1, clr1,
+ not1, tst1, movea, movhi */
+#define R_V850_SDA_15_16_OFFSET 10 /* For ld.w, ld.h, ld.hu, st.w, st.h */
+#define R_V850_ZDA_16_16_OFFSET 11 /* For ld.b, st.b, set1, clr1,
+ not1, tst1, movea, movhi */
+#define R_V850_ZDA_15_16_OFFSET 12 /* For ld.w, ld.h, ld.hu, st.w, st.h */
+#define R_V850_TDA_6_8_OFFSET 13 /* For sst.w, sld.w */
+#define R_V850_TDA_7_8_OFFSET 14 /* For sst.h, sld.h */
+#define R_V850_TDA_7_7_OFFSET 15 /* For sst.b, sld.b */
+#define R_V850_TDA_16_16_OFFSET 16 /* For set1, clr1, not1, tst1,
+ movea, movhi */
+#define R_V850_NUM 17
+
+
/* Legal values for e_flags field of Elf64_Ehdr. */
#define EF_ALPHA_32BIT 1 /* All addresses are below 2GB */
[-- Attachment #3: Type: text/plain, Size: 208 bytes --]
Thanks,
-Miles
--
[|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that
will make every christian in the world foamm at the mouth?
[iddt] nurg, that's the goal
next prev parent reply other threads:[~2002-11-26 7:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-15 15:25 [PATCH]: linux-2.5.42uc1 (MMU-less support) Greg Ungerer
2002-10-15 17:16 ` Christoph Hellwig
2002-10-16 14:41 ` Greg Ungerer
2002-10-16 14:48 ` Christoph Hellwig
2002-10-16 15:36 ` Greg Ungerer
2002-11-26 7:46 ` [PATCH] Make some EXPORT_SYMBOLs dependent on CONFIG_MMU Miles Bader
2002-11-26 7:49 ` Miles Bader [this message]
2002-11-26 15:41 ` [PATCH] v850 additions to include/linux/elf.h Alan Cox
2002-11-27 1:19 ` Miles Bader
2002-11-27 13:01 ` Alan Cox
2002-11-28 1:20 ` Miles Bader
2002-10-16 5:42 ` [PATCH]: linux-2.5.42uc1 (MMU-less support) Miles Bader
2002-10-16 12:49 ` Greg Ungerer
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=buoel987otw.fsf_-_@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=gerg@snapgear.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miles@gnu.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
all inboxes | Powered by JetHome®