From patchwork Wed Nov 1 04:52:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 117677 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp425418qgn; Tue, 31 Oct 2017 21:58:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T2Ei5nVPFC7Y9yVz+axE3wkQk9akYTL2Yhx6Z51xbUR0naLKa1D0/LpHpKcx8qBBmhoB0d X-Received: by 10.99.56.19 with SMTP id f19mr4400079pga.328.1509512312318; Tue, 31 Oct 2017 21:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509512312; cv=none; d=google.com; s=arc-20160816; b=b+JEoiBke/ExmB7JmBMNFytMPxDYk1mKiBgBJGwi9DU1LdXZ9jgEoY+OMPIcRTB7CM y4uzJ3Jqoz9Tp9Tgn+HgkGWNJU11b/JqKwBZI13IugnDreJU+xbepF2voyDKw0yEaFzH m4+PUPoyRpejdPecWdwdn1pc3A5Zvz4dacexvE7vzEUtsThGQLOtyGl9x1u1ULrFiGgO n3QTRMIwcXuRFj7E0k7HCR1DU7WImypvF9jIK4E4QclT+snifybwo9efu4DAbZ679476 zFKHYfBgXABAePZI6GbEbioKNjD9i9mhWcukc3ZjTRPCtDARKbRNqUCUF4b71ZVwglLW +iRQ== 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:dmarc-filter :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=OwfP29tzemY4ZeY2Hlvl3RWTU/uJ07gu/6R8FQIk9F8=; b=iCNdJZXqdMKLHbzJGTE43W5mXhExekL8wOx30yT1oVRCgEPOUoDqLgumiO0+2dNYAs NVot7zagin1Nxu4yVEDOzoRrfbUpeIPDIZZURMIo+RE5jwAKQ9XjUVQdMZuq7J2iY28v S9YhAbDztR7hws2xltClYFjegMLsQ8Mm5o45kQ6X4EEczhlR5omfEwudTmd251WmT2fC f1rF5olrdaEoBd8/iDvXQYntJpc0QkaU+Muzi0+6xaPaD4ourPTXs19MeY6v5nnrE76T kqpEn6JXDoAreyHGcYcy34ZatqELTz5mqnrQLkND1O5tAQnQLGU2f6qH0BA8637EzQaD M3yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=jxz9/Nqw; spf=pass (google.com: domain of newlib-return-15303-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15303-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 o15si3453466pgf.485.2017.10.31.21.58.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 21:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-15303-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=jxz9/Nqw; spf=pass (google.com: domain of newlib-return-15303-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15303-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=dDEnTbJEVlu27EQlTn7na8ogty927P6 793nHkxQVa6VjW3M4U40kriwjgfGSoekObaaMlEchgEnbsxXRmV/z+yWoSkorzZu 4JUnfay6WM6SSbWuRw5oBEZ9rmNaIryrxb9hhCWYT0Qbmzu28I4MceTLucTBRfIi 288/lcmYGFbQ= 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=MRtdo4+NRhkDVM2cbo2s9GXktGc=; b=jxz9/ NqwYGHVpLclciuqKzmect3XcJjbTvPDi0hhNezy9O1tEC7mJxviF21YIJm7hY+Hh UzXVmnmRuo5TjJxHIESCyTBtNRzy2QUzJdsBE5sqzoaASyzpGSESo1ZZ0nzMVL6C cBGRxvIVSqYcVS16bS5m/cbaFksNc9kXbqLQQ4= Received: (qmail 31907 invoked by alias); 1 Nov 2017 04:58:21 -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 31115 invoked by uid 89); 1 Nov 2017 04:58:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS 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, 01 Nov 2017 04:58:20 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4780CFED0 for ; Wed, 1 Nov 2017 04:53:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4780CFED0 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=yselkowi@redhat.com Received: from localhost.localdomain (ovpn-125-104.rdu2.redhat.com [10.10.125.104]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C681160605 for ; Wed, 1 Nov 2017 04:53:05 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH v1 09/10] cygwin: export SSP functions Date: Tue, 31 Oct 2017 23:52:45 -0500 Message-Id: <20171101045246.16596-10-yselkowi@redhat.com> In-Reply-To: <20171101045246.16596-1-yselkowi@redhat.com> References: <20171101045246.16596-1-yselkowi@redhat.com> Signed-off-by: Yaakov Selkowitz --- winsup/cygwin/common.din | 20 ++++++++++++++++++++ winsup/cygwin/include/cygwin/version.h | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) -- 2.14.3 diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din index 55fa9b16c..25ea607f9 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 @@ -50,6 +52,7 @@ __dn_skipname SIGFE __eprintf SIGFE __errno NOSIGFE __fbufsize NOSIGFE +__fgets_chk SIGFE __flbf NOSIGFE __fpclassifyd NOSIGFE __fpclassifyf NOSIGFE @@ -62,6 +65,7 @@ __fwritable NOSIGFE __fwriting NOSIGFE __getpagesize = getpagesize SIGFE __getreent NOSIGFE +__gets_chk SIGFE __gnu_basename NOSIGFE __infinity NOSIGFE __isinfd = isinf NOSIGFE @@ -72,7 +76,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 +100,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 7b95de3ee..8844486ac 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -483,12 +483,17 @@ details. */ 316: Export pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock. 317: Export renameat2. 318: Export strnstr. + 319: Export __chk_fail, __fgets_chk, __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 318 +#define CYGWIN_VERSION_API_MINOR 319 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible changes are made to the shared