]> sourceware.org Git - glibc.git/commitdiff
hurd: Avoid a PLT reference
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 13 Jun 2018 23:43:04 +0000 (01:43 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 13 Jun 2018 23:43:23 +0000 (01:43 +0200)
* sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
use PLT to call _hurd_self_sigstate.

ChangeLog
sysdeps/mach/hurd/i386/____longjmp_chk.S

index fab0c81adacf86aeb8ee8f8407da2203d4a82073..d094d20cfd337d892441091227e89b0b3c72b44e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@
        __thread_switch, __evc_wait): Move declarations to...
        * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
        attribute_hidden.
+       * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
+       use PLT to call _hurd_self_sigstate.
 
 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
 
index 1ee7bae2e46943c0f3b4ed3fd82c5ddf802428e2..1bde0efc3df9e2a324a0fcc04962056e6bca3b27 100644 (file)
@@ -68,12 +68,7 @@ ENTRY (____longjmp_chk)
 
        /* TODO: need locking?  */
        /* struct hurd_sigstate * _hurd_self_sigstate (void) */
-#ifdef PIC
-       call    1f
-1:     popl    %ebx
-       addl    $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx
-#endif
-       call    JUMPTARGET(_hurd_self_sigstate)
+       call    _hurd_self_sigstate
        /* TODO: %eax and %eax->sigaltstack are always valid?  */
 
        testl   $SS_ONSTACK, (HURD_SIGSTATE__SIGALTSTACK__OFFSET + SIGALTSTACK__SS_FLAGS__OFFSET)(%eax)
This page took 0.073392 seconds and 5 git commands to generate.