{"id":806302,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806302/?format=json","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/1.0/projects/41/?format=json","name":"GNU C Library","link_name":"glibc","list_id":"libc-alpha.sourceware.org","list_email":"libc-alpha@sourceware.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20170827201245.g5tfjijpxgmgufqz@var.youpi.perso.aquilenet.fr>","date":"2017-08-27T20:12:45","name":"[hurd,commited] hurd: fix build with -fstack-protector-strong libmachuser and libhurduser also need stack_chk_fail_local and they do not link against libc_nonshared. * mach/stack_chk_fail_local.c: New file. * hurd/stack_chk_fail_local.c: New file. * mach/","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"198d0436f60d1e194d3ee4587d68369a20d645b2","submitter":{"id":418,"url":"http://patchwork.ozlabs.org/api/1.0/people/418/?format=json","name":"Samuel Thibault","email":"samuel.thibault@ens-lyon.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/20170827201245.g5tfjijpxgmgufqz@var.youpi.perso.aquilenet.fr/mbox/","series":[{"id":44,"url":"http://patchwork.ozlabs.org/api/1.0/series/44/?format=json","date":"2017-08-27T20:12:45","name":"[hurd,commited] hurd: fix build with -fstack-protector-strong libmachuser and libhurduser also need stack_chk_fail_local and they do not link against libc_nonshared. * mach/stack_chk_fail_local.c: New file. * hurd/stack_chk_fail_local.c: New file. * mach/","version":1,"mbox":"http://patchwork.ozlabs.org/series/44/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806302/checks/","tags":{},"headers":{"Return-Path":"<libc-alpha-return-83764-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-83764-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"wIu5tAF+\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgR0Y5Zzwz9s8V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 06:13:01 +1000 (AEST)","(qmail 28117 invoked by alias); 27 Aug 2017 20:12:55 -0000","(qmail 22288 invoked by uid 89); 27 Aug 2017 20:12:50 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:subject:message-id:mime-version\n\t:content-type; q=dns; s=default; b=UDROizPsQlLN9toMNSbk++JxkfUIz\n\thps36Vo2QZN284mKg0WQgv9ffzeM8nBcb6TtWEh9f7VWEwZO86TpxVMl5+TQXl/W\n\tvcv4UmsPQ99hKL3WwDuwco4S2uSu70ZHn49QZ+9p46Zus3AL9Uai3mCCPuNNCP2r\n\tv0GzlXfnnjkuDM=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:subject:message-id:mime-version\n\t:content-type; s=default; bh=rQNDI6w06JA2kqLGiF2l6m04ZRs=; b=wIu\n\t5tAF+NGdEwnvjJqquL3hZ6q2flE3r4nDQrRFwMkwppw5yN5Lj9HkEAkR+AF5BEef\n\tAQres7x0GEXebmBPaoGHErUjI+POK6j5qrQvRaU4O+3nV+uM6hnSbkl2Ai8TRLd/\n\tzh32U1kDQk0Y8aHRLPybiOYhtBx/Vym0GiLpfJI0=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS,\n\tSPF_NEUTRAL autolearn=ham version=3.3.2 spammy=","X-HELO":"hera.aquilenet.fr","Date":"Sun, 27 Aug 2017 22:12:45 +0200","From":"Samuel Thibault <samuel.thibault@ens-lyon.org>","To":"libc-alpha@sourceware.org","Subject":"[hurd,commited] hurd: fix build with -fstack-protector-strong\n\tlibmachuser and libhurduser also need stack_chk_fail_local and they\n\tdo not\n\tlink against libc_nonshared. * mach/stack_chk_fail_local.c: New file.\n\t* hurd/stack_chk_fail_local.c: New file. * mach/Machrules\n\t($(interface-library)-routines): Add stack_chk_fail_local. *\n\tmach/Versions\n\t(GLIBC_2.4): Add __stack_chk_fail. * hurd/Versions (GLIBC_2.4): Add\n\t__stack_chk_fail.","Message-ID":"<20170827201245.g5tfjijpxgmgufqz@var.youpi.perso.aquilenet.fr>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","User-Agent":"NeoMutt/20170113 (1.7.2)"},"content":"","diff":"diff --git a/ChangeLog b/ChangeLog\nindex 1b0f15573a..4d94fee93b 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -1,6 +1,12 @@\n 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>\n \n \t* sysdeps/mach/hurd/bits/sysmacros.h: New file.\n+\t* mach/stack_chk_fail_local.c: New file.\n+\t* hurd/stack_chk_fail_local.c: New file.\n+\t* mach/Machrules ($(interface-library)-routines): Add\n+\tstack_chk_fail_local.\n+\t* mach/Versions (GLIBC_2.4): Add __stack_chk_fail.\n+\t* hurd/Versions (GLIBC_2.4): Add __stack_chk_fail.\n \n 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>\n \ndiff --git a/hurd/Versions b/hurd/Versions\nindex 77f5b4271e..011edc7384 100644\n--- a/hurd/Versions\n+++ b/hurd/Versions\n@@ -129,6 +129,10 @@ libc {\n     # functions used in macros & inline functions\n     __errno_location;\n   }\n+  GLIBC_2.4 {\n+    # functions used by RPC stubs\n+    __stack_chk_fail\n+  }\n \n   HURD_CTHREADS_0.3 {\n     # weak refs to libthreads functions that libc calls iff libthreads in use\ndiff --git a/hurd/stack_chk_fail_local.c b/hurd/stack_chk_fail_local.c\nnew file mode 100644\nindex 0000000000..305871fbc0\n--- /dev/null\n+++ b/hurd/stack_chk_fail_local.c\n@@ -0,0 +1 @@\n+#include <debug/stack_chk_fail_local.c>\ndiff --git a/mach/Machrules b/mach/Machrules\nindex 36adfc7681..29114b1eef 100644\n--- a/mach/Machrules\n+++ b/mach/Machrules\n@@ -221,7 +221,7 @@ endif\n \n ifdef interface-library\n \n-$(interface-library)-routines = $(interface-routines)\n+$(interface-library)-routines = $(interface-routines) stack_chk_fail_local\n extra-libs += $(interface-library)\n extra-libs-others += $(interface-library)\n \ndiff --git a/mach/Versions b/mach/Versions\nindex 0097aad59b..b22fda4cf4 100644\n--- a/mach/Versions\n+++ b/mach/Versions\n@@ -54,6 +54,10 @@ libc {\n     # This was always there, but not exported as it should have been.\n     mig_strncpy;\n   }\n+  GLIBC_2.4 {\n+    # functions used by RPC stubs\n+    __stack_chk_fail\n+  }\n   GLIBC_2.23 {\n     __mach_host_self_;\n   }\ndiff --git a/mach/stack_chk_fail_local.c b/mach/stack_chk_fail_local.c\nnew file mode 100644\nindex 0000000000..305871fbc0\n--- /dev/null\n+++ b/mach/stack_chk_fail_local.c\n@@ -0,0 +1 @@\n+#include <debug/stack_chk_fail_local.c>\n","prefixes":["hurd","commited"]}