]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move ____longjmp_chk prototype to include/setjmp.h
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 20 Aug 2017 13:30:29 +0000 (06:30 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 20 Aug 2017 13:30:46 +0000 (06:30 -0700)
Move ____longjmp_chk prototype to include/setjmp.h and add
attribute_hidden.

* debug/longjmp_chk.c (____longjmp_chk): Moved to ...
* include/setjmp.h (____longjmp_chk): Here.  Add
attribute_hidden.

ChangeLog
debug/longjmp_chk.c
include/setjmp.h

index c650d03e1245ae8e7eda7425e95ca693635267f2..7badd6bb8da89922d3b8b541a26b12228b3c0d1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
+       * include/setjmp.h (____longjmp_chk): Here.  Add
+       attribute_hidden.
+
 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 1a927f5ac1bfbcb43abed01b734d930569287a2f..1cea6c05ef3765915a0f2baa891a1929ef91dc98 100644 (file)
 
 #include <setjmp.h>
 
-// XXX Should move to include/setjmp.h
-extern void ____longjmp_chk (__jmp_buf __env, int __val)
-     __attribute__ ((__noreturn__));
-
 #define __longjmp ____longjmp_chk
 #define __libc_siglongjmp __longjmp_chk
 
index 90f46976e3c45a84a934b7d6d7989477ea9e8f80..e45328b18a9e00578ad3725f1e32992311538cf7 100644 (file)
@@ -8,6 +8,9 @@
 extern void __longjmp (__jmp_buf __env, int __val)
      __attribute__ ((__noreturn__)) attribute_hidden;
 
+extern void ____longjmp_chk (__jmp_buf __env, int __val)
+     __attribute__ ((__noreturn__)) attribute_hidden;
+
 /* Internal function to possibly save the current mask of blocked signals
    in ENV, and always set the flag saying whether or not it was saved.
    This is used by the machine-dependent definition of `__sigsetjmp'.