This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Add TLS reloc defines for AM33
- From: Mark Salter <msalter at redhat dot com>
- To: libc-alpha at sourceware dot org
- Cc: Mark Salter <msalter at redhat dot com>
- Date: Tue, 7 Aug 2012 11:01:46 -0400
- Subject: [PATCH] Add TLS reloc defines for AM33
2012-08-07 Mark Salter <msalter@redhat.com>
* elf/elf.h: Define AM33 (MN10300) TLS relocs.
Signed-off-by: Mark Salter <msalter@redhat.com>
---
elf/elf.h | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/elf/elf.h b/elf/elf.h
index 71cfdb8..8ad893b 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -2734,8 +2734,20 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_MN10300_GLOB_DAT 21 /* Create GOT entry. */
#define R_MN10300_JMP_SLOT 22 /* Create PLT entry. */
#define R_MN10300_RELATIVE 23 /* Adjust by program base. */
+#define R_MN10300_TLS_GD 24 /* 32 bit offset for global dynamic */
+#define R_MN10300_TLS_LD 25 /* 32 bit offset for local dynamic */
+#define R_MN10300_TLS_LDO 26 /* module-relative offset */
+#define R_MN10300_TLS_GOTIE 27 /* GOT offset for static TLS block
+ offset */
+#define R_MN10300_TLS_IE 28 /* GOT address for static TLS block
+ offset */
+#define R_MN10300_TLS_LE 29 /* Offset relative to static TLS
+ block */
+#define R_MN10300_TLS_DTPMOD 30 /* ID of module containing symbol */
+#define R_MN10300_TLS_DTPOFF 31 /* Offset in module TLS block */
+#define R_MN10300_TLS_TPOFF 32 /* Offset in static TLS block */
-#define R_MN10300_NUM 24
+#define R_MN10300_NUM 33
/* M32R relocs. */
--
1.7.11.2