aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/i386/sysdep.h8
-rw-r--r--sysdeps/unix/i386/sysdep.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/mach/i386/sysdep.h b/sysdeps/mach/i386/sysdep.h
index 5b4246e016..f467fef24b 100644
--- a/sysdeps/mach/i386/sysdep.h
+++ b/sysdeps/mach/i386/sysdep.h
@@ -51,4 +51,12 @@ Cambridge, MA 02139, USA. */
#define STACK_GROWTH_DOWN
+
+#ifdef PIC
+#define JUMPTARGET(name) name##@PLT
+#else
+#define JUMPTARGET(name) name
+#endif
+
+
#include_next <sysdep.h>
diff --git a/sysdeps/unix/i386/sysdep.h b/sysdeps/unix/i386/sysdep.h
index 4e4b6e6ab5..46f2886c4a 100644
--- a/sysdeps/unix/i386/sysdep.h
+++ b/sysdeps/unix/i386/sysdep.h
@@ -48,7 +48,7 @@ Cambridge, MA 02139, USA. */
jb JUMPTARGET(syscall_error)
#ifdef PIC
-#define JUMPTARGET(name) name@PLT
+#define JUMPTARGET(name) name##@PLT
#else
#define JUMPTARGET(name) name
#endif