Patchwork [10/11] Add Andes nds32 dynamic relocation type to elf/elf.h.

login
register
mail settings
Submitter vincentc
Date May 6, 2018, 2:41 p.m.
Message ID <1525617685-32083-11-git-send-email-vincentc@andestech.com>
Download mbox | patch
Permalink /patch/27137/
State New
Headers show

Comments

vincentc - May 6, 2018, 2:41 p.m.
---
 elf/elf.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 954f326..27add77 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3855,6 +3855,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 */