From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id D23023858C53; Sat, 27 May 2023 21:07:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D23023858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685221623; bh=vu3Jj2/qI7tb4yUoVC/8RDz7BmosxwKGwQ55U2W/aqo=; h=From:To:Subject:Date:From; b=qfbVswCMsx2prXRgB0zzRVDjLHtu2uIWDXSaKAvJcYtzrdqbyNZXEUak2oSN7xwPz 34EBj7+4xnGm9hP0YYjQO60ENxyGl2spNXYVtyS9gqDaDZozVptir3oyhxqlixMyaf LSdXXmQdCIKpIygmY//kaCRpiALeftMzioN/b8k8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] mach: Fix startup with stack protector X-Act-Checkin: glibc X-Git-Author: Samuel Thibault X-Git-Refname: refs/heads/master X-Git-Oldrev: 64d9ebae87731f1604a41e9df9bbe3c80c6cb5b8 X-Git-Newrev: 0660ab264fdfd49555430790267b539d1177192f Message-Id: <20230527210703.D23023858C53@sourceware.org> Date: Sat, 27 May 2023 21:07:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0660ab264fdfd49555430790267b539d1177192f commit 0660ab264fdfd49555430790267b539d1177192f Author: Samuel Thibault Date: Sat May 27 23:06:00 2023 +0200 mach: Fix startup with stack protector thread_set_state() is used to set up TLS, so stack protection can not be used yet. Diff: --- mach/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/mach/Makefile b/mach/Makefile index 2c09c29406..c602f546ca 100644 --- a/mach/Makefile +++ b/mach/Makefile @@ -62,6 +62,7 @@ CFLAGS-RPC_vm_protect.o = $(no-stack-protector) CFLAGS-RPC_i386_set_gdt.o = $(no-stack-protector) CFLAGS-RPC_i386_set_ldt.o = $(no-stack-protector) CFLAGS-RPC_task_get_special_port.o = $(no-stack-protector) +CFLAGS-RPC_thread_set_state.o = $(no-stack-protector) # Translate GNU names for CPUs into the names used in Mach header files. mach-machine = $(patsubst powerpc,ppc,$(base-machine))