From patchwork Wed Nov 29 09:42:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 119943 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2837732qgn; Wed, 29 Nov 2017 01:51:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMY+pvZG7OKbTBs9f0SJ9KsCqgtCUr/ccWpbfdzfUGos2I85qvpe9C2hK5J62m0f+h/fiVrT X-Received: by 10.101.88.76 with SMTP id s12mr2241818pgr.215.1511949086409; Wed, 29 Nov 2017 01:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511949086; cv=none; d=google.com; s=arc-20160816; b=U3yC6l2+KqtvfeC0MRcnpKspmwNdWj4/3cD1wznCsgTgM3a/qQGcdreLbtZoQtrl3A Xc75UvJ1ES4bY6+rTM85kQ8tXq8wpv99K7LUzzNs4mBSkbAXnnxqQ0ja7AfXaXP6/pEn r6T53Tu95M/p8Y9/0pqR7U9WOV0SppfzSivgD0Z3QgFdQlfcblXcbSb7y+V2oudBoV+F cQ7nSbqTNMEX6B3xaGydPMkI5tNItZ9pZ+842//xjSb+sCFWeq2OxHoPtIralWVmJiG7 RoDfm8051PEhamFjiKsv4cAA218kpBSIa3cv3rBTNPqBdk1QyDW6dGU1gcDcXY2tFuL3 IwWQ== 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=a8oMBo7A93Cv6lH6ah5i0PWvXvopokFHeIz8BHDvt9yz66y4G7YGSx4RDBwRazD2C4 +xNSFmYpaJnWH99aK3fCNI68bBUEjizhwBCtE7WvYmszGGy3V8jyDNRbxqAzWoncPSoh IsEemnoPczDE9tsC9ZxmL/+27UmExTegQKtdcWsKue6zJbrVLemfh1H1iIZZ9GeLL46m C13ojlK0KMWlnqcq6QJCwebf00KiVM21xRw8ATxE/nRxfuGz5miRktAQep2JGR8sctEl AmcLWEzcwTRBvJDoZfKm57veJP0gwA7INj/KTDE3f4JyEwvh3OQT9v+w5rLbHelmpRA1 O2Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=GrZzJWWq; spf=pass (google.com: domain of newlib-return-15404-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15404-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 14si1021077pla.382.2017.11.29.01.51.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 01:51:26 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-return-15404-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=GrZzJWWq; spf=pass (google.com: domain of newlib-return-15404-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15404-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=R3yYkNlF1gwWONhDsmdo2gNuxxsLvbj uqAdi9A6YeszpbAMe33/inxew0ToR4PwuHOQ1uyMk619q5jUrTChjd9Sq+VfICiV PEiDLw9ZqFB/mKDYDzKK0OY1rjk7rw7Pn/Cn01IWEmobRDgLhlVQrWC2dPG/q6N0 +LdTzspWwZZo= 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=GrZzJ WWq5BDALE7owW1z2ihGP80YB9pfdXjO0OytLwfQCkSIVFJv59yOTFSvW8P2Ju2Mw v/+Y8Xd1I2WcKVp7V6VPjQUkDBcistdlJYwHS20kMPK5NRM96qHR3MpE8fBL9cM7 4B8wby9eSWNCzdAovDG7Ysz0B5dEH/uk8RbXcg= Received: (qmail 105627 invoked by alias); 29 Nov 2017 09:51:16 -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 105617 invoked by uid 89); 29 Nov 2017 09:51:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, 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 09:51:14 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 442FF8553E for ; Wed, 29 Nov 2017 09:43:19 +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 CA0A160C91 for ; Wed, 29 Nov 2017 09:43:18 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH v5 09/10] cygwin: export SSP functions Date: Wed, 29 Nov 2017 03:42:59 -0600 Message-Id: <20171129094300.20296-10-yselkowi@redhat.com> In-Reply-To: <20171129094300.20296-1-yselkowi@redhat.com> References: <20171129094300.20296-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