public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add Andes nds32 dynamic relocations to elf.h
@ 2018-06-20  7:42 Vincent Chen
  2018-06-21 20:46 ` Joseph Myers
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Chen @ 2018-06-20  7:42 UTC (permalink / raw)
  To: libc-alpha, joseph; +Cc: deanbo422, cnoize, Vincent Chen

2018-06-20  Vincent Chen  <vincentc@andestech.com>

	* elf/elf.h (R_NDS32_NONE): New define.
	(R_NDS32_32_RELA): Likewise.
	(R_NDS32_COPY): Likewise.
	(R_NDS32_GLOB_DAT): Likewise.
	(R_NDS32_JUMP_SLOT): Likewise.
	(R_NDS32_RELATIVE): Likewise.
	(R_NDS32_TLS_TPOFF): Likewise.
	(R_NDS32_TLS_DESC): Likewise.
---
 ChangeLog | 11 +++++++++++
 elf/elf.h | 10 ++++++++++
 2 files changed, 21 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 90b65fd3a6..fb5db2ea10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2018-06-20  Vincent Chen  <vincentc@andestech.com>
+
+	* elf/elf.h (R_NDS32_NONE): New define.
+	(R_NDS32_32_RELA): Likewise.
+	(R_NDS32_COPY): Likewise.
+	(R_NDS32_GLOB_DAT): Likewise.
+	(R_NDS32_JUMP_SLOT): Likewise.
+	(R_NDS32_RELATIVE): Likewise.
+	(R_NDS32_TLS_TPOFF): Likewise.
+	(R_NDS32_TLS_DESC): Likewise.
+
 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #23280]
diff --git a/elf/elf.h b/elf/elf.h
index a5b2811ce0..f4485d992f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3914,6 +3914,16 @@ enum
 #define R_METAG_TLS_LE_HI16	60
 #define R_METAG_TLS_LE_LO16	61
 
+/* NDS32 relocations.  */
+#define R_NDS32_NONE		0
+#define R_NDS32_32_RELA 	20
+#define R_NDS32_COPY		39
+#define R_NDS32_GLOB_DAT	40
+#define R_NDS32_JMP_SLOT	41
+#define R_NDS32_RELATIVE	42
+#define R_NDS32_TLS_TPOFF	102
+#define R_NDS32_TLS_DESC	119
+
 __END_DECLS
 
 #endif	/* elf.h */
-- 
2.16.2

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

* Re: [PATCH] Add Andes nds32 dynamic relocations to elf.h
  2018-06-20  7:42 [PATCH] Add Andes nds32 dynamic relocations to elf.h Vincent Chen
@ 2018-06-21 20:46 ` Joseph Myers
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2018-06-21 20:46 UTC (permalink / raw)
  To: Vincent Chen; +Cc: libc-alpha, deanbo422, cnoize

On Wed, 20 Jun 2018, Vincent Chen wrote:

> 2018-06-20  Vincent Chen  <vincentc@andestech.com>
> 
> 	* elf/elf.h (R_NDS32_NONE): New define.
> 	(R_NDS32_32_RELA): Likewise.
> 	(R_NDS32_COPY): Likewise.
> 	(R_NDS32_GLOB_DAT): Likewise.
> 	(R_NDS32_JUMP_SLOT): Likewise.
> 	(R_NDS32_RELATIVE): Likewise.
> 	(R_NDS32_TLS_TPOFF): Likewise.
> 	(R_NDS32_TLS_DESC): Likewise.

Thanks, committed.

-- 
Joseph S. Myers
joseph@codesourcery.com

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

end of thread, other threads:[~2018-06-21 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-20  7:42 [PATCH] Add Andes nds32 dynamic relocations to elf.h Vincent Chen
2018-06-21 20:46 ` Joseph Myers

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).