From 04bf7d2d8a79bf8d06ca811518688ccda190b376 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 3 Aug 2023 21:16:41 +0200 Subject: chk: Add and fix hidden builtin definitions for *_chk Otherwise on gnu-i686 there are unwanted PLT entries in libc.so when fortification is enabled. Tested for i686-gnu, x86_64-gnu, i686-linux-gnu and x86_64-linux-gnu --- setjmp/longjmp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setjmp') diff --git a/setjmp/longjmp.c b/setjmp/longjmp.c index 69f540ea22..24795ecbb5 100644 --- a/setjmp/longjmp.c +++ b/setjmp/longjmp.c @@ -19,6 +19,8 @@ #include #include +#undef longjmp +#undef siglongjmp /* Set the signal mask to the one specified in ENV, and jump to the position specified in ENV, causing the setjmp -- cgit 1.4.1