]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix reference to _hurd_self_sigstate
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 Jun 2018 14:07:23 +0000 (14:07 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 Jun 2018 14:07:23 +0000 (14:07 +0000)
* sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
prototype and definition.
* sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
hidden target for _hurd_self_sigstate.

ChangeLog
sysdeps/hurd/include/hurd/signal.h
sysdeps/mach/hurd/i386/____longjmp_chk.S

index 363ae5bd77f5916a265f1cc8f69b5112eeca6d0c..9dd87eebb82c6e880702ae874a687d549ce07f66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
        * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
        __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
+       * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
+       prototype and definition.
+       * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
+       hidden target for _hurd_self_sigstate.
 
 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
 
index 1cb0adaa55fe153bcd2cb1051f47daf351372fb0..8ceab328c55df3349015e8bdc4da41c1713cfdda 100644 (file)
@@ -1,9 +1,18 @@
 #ifndef        _HURD_SIGNAL_H
+extern struct hurd_sigstate *_hurd_self_sigstate (void) __attribute__ ((__const__));
+#ifndef _ISOMAC
+libc_hidden_proto (_hurd_self_sigstate)
+#endif
+
 #include_next <hurd/signal.h>
+
 #ifndef _ISOMAC
 libc_hidden_proto (_hurd_exception2signal)
 libc_hidden_proto (_hurd_intr_rpc_mach_msg)
 libc_hidden_proto (_hurd_thread_sigstate)
 libc_hidden_proto (_hurd_raise_signal)
 #endif
+#ifdef _HURD_SIGNAL_H_HIDDEN_DEF
+libc_hidden_def (_hurd_self_sigstate)
+#endif
 #endif
index 1bde0efc3df9e2a324a0fcc04962056e6bca3b27..7c3a73adbac7cb49b8a9323f36375a6f4128a62e 100644 (file)
@@ -68,7 +68,7 @@ ENTRY (____longjmp_chk)
 
        /* TODO: need locking?  */
        /* struct hurd_sigstate * _hurd_self_sigstate (void) */
-       call    _hurd_self_sigstate
+       call    HIDDEN_JUMPTARGET(_hurd_self_sigstate)
        /* TODO: %eax and %eax->sigaltstack are always valid?  */
 
        testl   $SS_ONSTACK, (HURD_SIGSTATE__SIGALTSTACK__OFFSET + SIGALTSTACK__SS_FLAGS__OFFSET)(%eax)