about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/crti.S2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1db9747b3a..46114b4187 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
+	with *%eax in call.
+
+2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* sysdeps/i386/ldsodefs.h: Removed.
 	* sysdeps/x86_64/ldsodefs.h: Moved to ...
 	* sysdeps/x86/ldsodefs.h: This.
diff --git a/sysdeps/i386/crti.S b/sysdeps/i386/crti.S
index c0422f9ce3..065460b813 100644
--- a/sysdeps/i386/crti.S
+++ b/sysdeps/i386/crti.S
@@ -68,7 +68,7 @@ _init:
 	movl PREINIT_FUNCTION@GOT(%ebx), %eax
 	testl %eax, %eax
 	je .Lno_weak_fn
-	call PREINIT_FUNCTION@PLT
+	call *%eax
 .Lno_weak_fn:
 #else
 	call PREINIT_FUNCTION