https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121397
--- Comment #4 from Kirill A. Korinsky <kirill at korins dot ky> --- Andrew, a trivial patch: Index: libgcc/enable-execute-stack-mprotect.c --- libgcc/enable-execute-stack-mprotect.c.orig +++ libgcc/enable-execute-stack-mprotect.c @@ -30,7 +30,6 @@ static int need_enable_exec_stack; -static void check_enabling (void) __attribute__ ((unused)); extern void __enable_execute_stack (void *); #if defined __sun__ && defined __svr4__ allows to move forward, yes.