summary refs log tree commit diff
path: root/sysdeps/x86_64/bits/linkmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/bits/linkmap.h')
-rw-r--r--sysdeps/x86_64/bits/linkmap.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/x86_64/bits/linkmap.h b/sysdeps/x86_64/bits/linkmap.h
new file mode 100644
index 0000000000..8ea7157156
--- /dev/null
+++ b/sysdeps/x86_64/bits/linkmap.h
@@ -0,0 +1,14 @@
+#if __WORDSIZE == 64
+struct link_map_machine
+  {
+    Elf64_Addr plt; /* Address of .plt + 0x16 */
+    Elf64_Addr gotplt; /* Address of .got + 0x18 */
+  };
+
+#else
+struct link_map_machine
+  {
+    Elf32_Addr plt; /* Address of .plt + 0x16 */
+    Elf32_Addr gotplt; /* Address of .got + 0x0c */
+  };
+#endif