diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sysdeps/x86_64/crti.S | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,12 @@ 2016-03-04 H.J. Lu <hongjiu.lu@intel.com> [BZ #19745] + * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT + with *%rax in call. + +2016-03-04 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #19745] * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT with *__libc_start_main@GOTPCREL(%rip) in call. diff --git a/sysdeps/x86_64/crti.S b/sysdeps/x86_64/crti.S index a34525974a..e9d86ed08a 100644 --- a/sysdeps/x86_64/crti.S +++ b/sysdeps/x86_64/crti.S @@ -66,7 +66,7 @@ _init: movq PREINIT_FUNCTION@GOTPCREL(%rip), %rax testq %rax, %rax je .Lno_weak_fn - call PREINIT_FUNCTION@PLT + call *%rax .Lno_weak_fn: #else call PREINIT_FUNCTION |