about summary refs log tree commit diff
path: root/sysdeps/x86/bits/linkmap.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-30 15:21:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-30 15:21:55 -0700
commit6bd976963f65990e1099eb4e08946bdb5191dc9c (patch)
tree789d7aca8ae92f5dacce9be1d56fd016d7884095 /sysdeps/x86/bits/linkmap.h
parentf726f0bb75f930c46bbd3b2ce81c29fa28c6292b (diff)
downloadglibc-6bd976963f65990e1099eb4e08946bdb5191dc9c.tar.gz
glibc-6bd976963f65990e1099eb4e08946bdb5191dc9c.tar.xz
glibc-6bd976963f65990e1099eb4e08946bdb5191dc9c.zip
Use x86_64 bits/{link.h,linkmap.h} for i386/x86_64
Diffstat (limited to 'sysdeps/x86/bits/linkmap.h')
-rw-r--r--sysdeps/x86/bits/linkmap.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/x86/bits/linkmap.h b/sysdeps/x86/bits/linkmap.h
new file mode 100644
index 0000000000..dd0d140874
--- /dev/null
+++ b/sysdeps/x86/bits/linkmap.h
@@ -0,0 +1,16 @@
+#if __WORDSIZE == 64
+struct link_map_machine
+  {
+    Elf64_Addr plt; /* Address of .plt + 0x16 */
+    Elf64_Addr gotplt; /* Address of .got + 0x18 */
+    void *tlsdesc_table; /* Address of TLS descriptor hash table.  */
+  };
+
+#else
+struct link_map_machine
+  {
+    Elf32_Addr plt; /* Address of .plt + 0x16 */
+    Elf32_Addr gotplt; /* Address of .got + 0x0c */
+    void *tlsdesc_table; /* Address of TLS descriptor hash table.  */
+  };
+#endif