[hurd,commited] mach: Fix startup with stack protector

Message ID 20230527210710.3416482-1-samuel.thibault@ens-lyon.org
State Committed
Commit 0660ab264fdfd49555430790267b539d1177192f
Series [hurd,commited] mach: Fix startup with stack protector |


Context Check Description
redhat-pt-bot/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent
redhat-pt-bot/TryBot-32bit fail Patch series failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Testing passed

Commit Message

Samuel Thibault May 27, 2023, 9:07 p.m. UTC
  thread_set_state() is used to set up TLS, so stack protection can not be
used yet.
 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))