From patchwork Wed Nov 29 00:21:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 119917 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2404138qgn; Tue, 28 Nov 2017 16:31:46 -0800 (PST) X-Google-Smtp-Source: AGs4zMb93ujChujds84AzRdUREmoHUvZel92I6Xs2QRHUlIvKi91Cbjw4XsRi4GvRoVJD1UtgjuL X-Received: by 10.98.78.204 with SMTP id c195mr1032553pfb.51.1511915505964; Tue, 28 Nov 2017 16:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511915505; cv=none; d=google.com; s=arc-20160816; b=Fs2vZkSKLaYxNEJ2eJJeo/X4zIkdcUWpgBy8zgM+h8IYMxDP0tTBCuD0k0rkepsmkx 54EBXFEtPM4ZvyLmN3CrOyx9yGJDLo/AoLhoHZDYyD+ZqXYSpP0MEgFXg/sunyHDylPM G7zvesro6RDsZBrGPrgJu1/Uz7/kKV0CHlKni9gEhIvBodDsnTIh1z6tBbkviOB6eLK/ U/XEJxu0B7M6zJfqgyvvgRGGp1cnjYXPW0Iv0OMYXWLW80Gmyezf7GkBTXfgAFE61xXv aONoEgJHrR2XFkiv2sBysDas1mZlPnrWcJxYYw35rbEHCQUUdPUiCb075Tduk/6HTQvu RPRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=Q+Y8SwVcVSjzR3O5EZiVPDmFo8zOO2li+Is1KL5+SLE=; b=EtdUaWx9vWSUCIYkzSJ8LMFsDt/YUelQXFyjHOGOawXgAOZqr2NqeKVd/0CkqXew6+ s6GtTxR7HG+CVHi9FbjLkVPs+egG9g4gq8gEy/KwPSHDbu780P0QbaPNhsCtAE7AShv1 aZDldkWEqMdFeA8OayJWCm9J8v5opscVWjvRw2l6UdJbJqUWq2cL0NVWA3N11VE6gykn AjZnieX5Q4XOPz3nAIc6PxtPVt9Ysh9QkBijkQlARqQVfI7gvm7lsuiit5YExrDmkBl9 R4fDh/qptVntOS0/ADE83K4LU12edwsBVIxTIWSN+kyJlJXA30r1HsTWU/yBUlTKMsMl UMvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=fQazq+tv; spf=pass (google.com: domain of newlib-return-15395-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15395-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id r3si291782plb.814.2017.11.28.16.31.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 16:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-return-15395-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=fQazq+tv; spf=pass (google.com: domain of newlib-return-15395-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15395-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=JCFAJcX7SGhHIKa2sYBLN2KwsiCJ/1M LGahz5rY6DS0ydTQvouMZPKoykkvpB54siOR1Prr3N+oRjWtnQlBotQ06Y1xpzFh UpPD+DXo+4p3Nt1H2pSd91h/39M7Dkbb7UEj1ojilFu/vXC4VA4NPpnlT+M+Vzcg KpOQwFJr83/w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=A0EQJ0VxZRu1Jm7Zt102D1gEyN0=; b=fQazq +tvD6T0DSBCLLIsL3h5DbvzkiHG/4cyasrawrhLOsIPmTYQacGxmKj0Qovau/6Fh PZdI6ijRhijledQtYR95OP5VuN0GfjJGvFw6D2RqFS+Gb48ckFcqeGGwOGlBFOoa KvC31+2rMD6JQHxoKcOIE7+8WD3ZHjes9azsJ8= Received: (qmail 13389 invoked by alias); 29 Nov 2017 00:31:35 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 13376 invoked by uid 89); 29 Nov 2017 00:31:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KB_WAM_FROM_NAME_SINGLEWORD, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Nov 2017 00:31:34 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 371054E906 for ; Wed, 29 Nov 2017 00:21:59 +0000 (UTC) Received: from localhost.localdomain (ovpn-120-11.rdu2.redhat.com [10.10.120.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C2F23600D1 for ; Wed, 29 Nov 2017 00:21:58 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH v4 09/10] cygwin: export SSP functions Date: Tue, 28 Nov 2017 18:21:42 -0600 Message-Id: <20171129002143.12500-10-yselkowi@redhat.com> In-Reply-To: <20171129002143.12500-1-yselkowi@redhat.com> References: <20171129002143.12500-1-yselkowi@redhat.com> Signed-off-by: Yaakov Selkowitz --- winsup/cygwin/common.din | 19 +++++++++++++++++++ winsup/cygwin/include/cygwin/version.h | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) -- 2.15.0 diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din index 55fa9b16c..a482cf2b7 100644 --- a/winsup/cygwin/common.din +++ b/winsup/cygwin/common.din @@ -7,6 +7,7 @@ __cygwin_user_data DATA __mb_cur_max DATA __progname DATA __rcmd_errstr DATA +__stack_chk_guard DATA _check_for_executable DATA _ctype_ DATA _daylight DATA @@ -42,6 +43,7 @@ __assertfail NOSIGFE __b64_ntop NOSIGFE __b64_pton NOSIGFE __bsd_qsort_r NOSIGFE +__chk_fail SIGFE __cxa_atexit = cygwin__cxa_atexit SIGFE __cxa_finalize SIGFE __dn_comp SIGFE @@ -62,6 +64,7 @@ __fwritable NOSIGFE __fwriting NOSIGFE __getpagesize = getpagesize SIGFE __getreent NOSIGFE +__gets_chk SIGFE __gnu_basename NOSIGFE __infinity NOSIGFE __isinfd = isinf NOSIGFE @@ -72,7 +75,11 @@ __locale_ctype_ptr NOSIGFE __locale_ctype_ptr_l NOSIGFE __locale_mb_cur_max NOSIGFE __main NOSIGFE +__memcpy_chk NOSIGFE +__memmove_chk NOSIGFE __mempcpy = mempcpy NOSIGFE +__mempcpy_chk NOSIGFE +__memset_chk NOSIGFE __opendir_with_d_ino SIGFE __res_close SIGFE __res_init SIGFE @@ -92,10 +99,22 @@ __res_state SIGFE __signbitd NOSIGFE __signbitf NOSIGFE __signgam NOSIGFE +__snprintf_chk SIGFE +__sprintf_chk SIGFE __srget SIGFE __srget_r SIGFE +__stack_chk_fail SIGFE +__stack_chk_fail_local = __stack_chk_fail SIGFE +__stpcpy_chk NOSIGFE +__stpncpy_chk NOSIGFE +__strcat_chk NOSIGFE +__strcpy_chk NOSIGFE +__strncat_chk NOSIGFE +__strncpy_chk NOSIGFE __swbuf SIGFE __swbuf_r SIGFE +__vsnprintf_chk SIGFE +__vsprintf_chk SIGFE __wrap__ZdaPv NOSIGFE # void operator delete[](void *p) throw() __wrap__ZdaPvRKSt9nothrow_t NOSIGFE # void operator delete[](void *p, const std::nothrow_t &nt) throw() __wrap__ZdlPv NOSIGFE # void operator delete(void *p) throw() diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 8b85f863f..d8bb3ee44 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -484,12 +484,17 @@ details. */ 317: Export renameat2. 318: Export strnstr. 319: Define O_TMPFILE, O_NOATIME. + 320: Export __chk_fail, __gets_chk, __memcpy_chk, __memmove_chk, + __mempcpy_chk, __memset_chk, __snprintf_chk, __sprintf_chk, + __stack_chk_fail, __stack_chk_guard, __stpcpy_chk, __stpncpy_chk, + __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk, + __vsnprintf_chk, __vsprintf_chk. Note that we forgot to bump the api for ualarm, strtoll, strtoull, sigaltstack, sethostname. */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 319 +#define CYGWIN_VERSION_API_MINOR 320 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible changes are made to the shared