From patchwork Wed Nov 1 04:52: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: 117673 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp422394qgn; Tue, 31 Oct 2017 21:54:02 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QK0cpjTsqGo4voOfeOkONTxGUR++4C9kieyD8+jYt7NPndyqWWPBEy/mdtvhNZHYbKH+Vx X-Received: by 10.99.49.134 with SMTP id x128mr4666987pgx.35.1509512042153; Tue, 31 Oct 2017 21:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509512042; cv=none; d=google.com; s=arc-20160816; b=am1hEWyp2ZIBsOZgaRXeVrvP3WUzZA+jU1uzMnVv33AGrcWwmpZaUohPBAwf6CQhdZ Uv25Tm+7XyYpk9th0ljqpigBEN5CBdcVqxejhKdU4iqn7uwH+qYzeIcbcNxWi71uycHC wisNzUohkm0mq4nfML27Ef8rdPEl/v/DTcjOUAGVEgGTboaIotEhcPVk4POAsKZLUwGn hIw+CUU/6YfTOvuhawuTCTEHN7oDNyovmRD6mNer+ufm8bH3DL0HFaRONncVeyPLVrDZ qfZd4P7bhxPyM/M5vYPOfuoHoa/o3fm/RSsRjppHL/j3B5LHruCt1BF+O26EKcdMd8FT FBpw== 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=fpH2uhq4EKjYd4qwOMkr6VgN+8bG84u/vuQRT2i29p4=; b=GRRAstXZCcktLq1Qm8LmFKpCVZXvv2yuYIXCUOkfxmKj0N0oV7BTEUlSsCLfj9Yh/1 7sSd4KEykHqrAhZLhwOHWJl2nDWfNXhF5Mz+2unGOEVtUbcvId5WKfeLy4mMKWrAnedd Z30/m3y3NROMkn0yv2OQf3WJx/gOc98syeCBpmZ8gMiqlrQ0g6TbkUYK4WkQl2T1nrfu kpb8IUASNx7O+U01VmxhSGuDAhsaAxYbS7a7DbKuQV8J57v2h6L5rtuIbehsE2muTbK8 ZDnoBZWfiHMB6jOIDry8wMrBN2MJDn5J0T/Ixjlnb324TOG2ZL8ljA33dehCjPDuvuae 8UXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=w9H9O9Ds; spf=pass (google.com: domain of newlib-return-15299-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15299-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 r1si3466480pgd.647.2017.10.31.21.54.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 21:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-15299-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=w9H9O9Ds; spf=pass (google.com: domain of newlib-return-15299-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15299-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=AAdQ7MzVy5jLx4+uYBGQ1tk4uZEE3zr pfAlfsDcj4DOcON155XhuSVSVyzyf3LEs58CMkByd5lRe7L0d8PO3hFPpxN7YQ3u wO+73Mj/dlr3S4nysl43freEyo2fq773LdvhFN/+OP03i9FbZbevseQKX5sVJCyc 5k3WvggJwbbg= 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=RDz3gb/NUV5A3+jIxP7k5C0LU84=; b=w9H9O 9Ds0DMy++SeeP+djE1TWHxM2TWLveNkAzCFfXsjM+2X+cp1hTfz5B+0/0AX90vhA Ef7Lq0pOwfI33TdJhmJrVIJyZ9t0VSDvCr7YedFvdz2BrjsUs1B5AheGhJGel8D/ tgzDB8riL8C14DfLvuYY6/By8mR2cDkkbxMZpU= Received: (qmail 106797 invoked by alias); 1 Nov 2017 04:53:06 -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 106667 invoked by uid 89); 1 Nov 2017 04:53:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Defining, bsd, BSD 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:53:05 +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 0024D356CB for ; Wed, 1 Nov 2017 04:53:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0024D356CB Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.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 7E5C660605 for ; Wed, 1 Nov 2017 04:53:03 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH v1 06/10] ssp: document _FORTIFY_SOURCE with the feature test macros Date: Tue, 31 Oct 2017 23:52:42 -0500 Message-Id: <20171101045246.16596-7-yselkowi@redhat.com> In-Reply-To: <20171101045246.16596-1-yselkowi@redhat.com> References: <20171101045246.16596-1-yselkowi@redhat.com> Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/sys/features.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.14.3 diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index c9133af57..53a100d50 100644 --- a/newlib/libc/include/sys/features.h +++ b/newlib/libc/include/sys/features.h @@ -100,6 +100,9 @@ extern "C" { * _SVID_SOURCE (deprecated by _DEFAULT_SOURCE) * _DEFAULT_SOURCE (or none of the above) * POSIX-1.2008 with BSD and SVr4 extensions + * + * _FORTIFY_SOURCE = 1 or 2 + * Object Size Checking function wrappers */ #ifdef _GNU_SOURCE @@ -233,9 +236,11 @@ extern "C" { * __GNU_VISIBLE * GNU extensions; enabled with _GNU_SOURCE. * + * __SSP_FORTIFY_LEVEL + * Object Size Checking; defined to 0 (off), 1, or 2 in . + * * In all cases above, "enabled by default" means either by defining * _DEFAULT_SOURCE, or by not defining any of the public feature test macros. - * Defining _GNU_SOURCE makes all of the above avaliable. */ #ifdef _ATFILE_SOURCE