From patchwork Tue Nov 28 08:57:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 119813 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1442418qgn; Tue, 28 Nov 2017 01:06:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMZKWfgxd4mbMJ2CpYGRaj7P2qZ8oxGJ+7K7xlxiDsRnv/ApGsN7GCftnEzmrK6h9Z5J/98O X-Received: by 10.98.198.73 with SMTP id m70mr20047955pfg.92.1511859985934; Tue, 28 Nov 2017 01:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511859985; cv=none; d=google.com; s=arc-20160816; b=c6sgbn1XpQ6MrRn8voRRO6YTXJTuE3d5CyGUknqrBqYB2PmRJ6WsyX9sv8vUMfPQaH zF3He1txrC5Is7qoqut7mIX9WjAHJL1VgU5XTDIDxT0d/6viuQ8Ycv5sF+BnsV1igODm g975WwD3MubMPD04upinWDzOTIxn1b2+Dg/yck4bZ2WT/Ex4dhT2z2Y7AfIDA869Eq8s 5GzBQsPcFUX96yyIjWtcrw7Zbc6Tqks3iEqWrXrmuOdU203GoDwDqaRbG1hbo3vbikhB HOF3Ces71NqvTYuAQT4pOEqs6fZQ/wfCICqBo/MdRYW3/SPRZ55GkKckJ9Px+kM/TxQJ Seow== 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=h6rz7Yt9jh8U5KX2oCdbJ6+i5j1wk+FcJWzm2NEsTBQ=; b=QHHQUA5eFTzBTPGSQsCiCRRZPlXd/SnU6A3RaNOHXRGZ2EHVCBbGxqG2HzhT6ru6Cx uaH6RjXtJu1Q2IaIlha8zKoMQc/78GK8bv3NcyblURwJwGRjkneipK7QA7pRxtf3DU2A JtBcoIZ5RpZoHCnky7JCJdg/61NKOMyCxZ8PmfR5hd1cgdvsYRXf3ZWAW7pxI57qGuG5 meCdVw2it5TWBTm5iTs0u88vzPMjwY6Ikl+GQD09dSfENWVHsvbYRkJHY5sDFyCgdouu gKfpiiR4vnLGmQ8swV2QZDCDJHHVRga+EzEtmQdv51V38/QOWDTSADgvJ+zLlt8Hyu9/ 2zhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=QQnk7zga; spf=pass (google.com: domain of newlib-return-15381-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15381-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 o18si10833762pfa.3.2017.11.28.01.06.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 01:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-return-15381-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=QQnk7zga; spf=pass (google.com: domain of newlib-return-15381-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15381-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=J9ssQwl7//CeaqVb2EGIHQpobT/obJx YMIbNgsym5BVxMHPljgK4bPxUj/HNmwQydGgXAbwZOLW8amElIoeqKrIk0jkj0db f0+W+WTHWWQB1jZvQvdiuQcCL4uWkv5iot+WLkwQdKRuiGYkLD1C0oRYPZ8/NuAt I0m8CSH31750= 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=E6NEBYJm4kn2mBAjydL8WxX2Scg=; b=QQnk7 zgatTRjvNUAA2TnK5/HblTHHUbofFcWr/jTMsuxNy1Ykxce7w5SI/1FLBiVk87b2 hLW98Rv4BNaw467f4rdJ0CTALfyAEivRzbf5frlEiRMrhxiU3oZqspu/2hbrwRFJ PqY+BVXR9ynHfMefLM6g7Zq+LlXoajNtDLDGIQ= Received: (qmail 110829 invoked by alias); 28 Nov 2017 09:06: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 110819 invoked by uid 89); 28 Nov 2017 09:06:15 -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=sk:CYGWIN_, sk:cygwin_, o_tmpfile, O_TMPFILE 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; Tue, 28 Nov 2017 09:06:14 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 350EC80467 for ; Tue, 28 Nov 2017 08:58:13 +0000 (UTC) Received: from localhost.localdomain (ovpn-120-142.rdu2.redhat.com [10.10.120.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B3C1A5D753 for ; Tue, 28 Nov 2017 08:58:12 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH v3 8/9] cygwin: export SSP functions Date: Tue, 28 Nov 2017 02:57:54 -0600 Message-Id: <20171128085755.5928-9-yselkowi@redhat.com> In-Reply-To: <20171128085755.5928-1-yselkowi@redhat.com> References: <20171128085755.5928-1-yselkowi@redhat.com> Signed-off-by: Yaakov Selkowitz --- SIGFE/NOSIGFE probably should be double-checked here. winsup/cygwin/common.din | 20 ++++++++++++++++++++ winsup/cygwin/include/cygwin/version.h | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) -- 2.15.0 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 8b85f863f..c40d4d14f 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, __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 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