From patchwork Tue Feb 21 09:45:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Enkovich X-Patchwork-Id: 142273 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9F6ABB6FAC for ; Tue, 21 Feb 2012 20:45:34 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1330422335; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:MIME-Version:Received:Received:Date: Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=3klsi3ZuyoUr5l+MNbJ9Ip8GkiA=; b=utUI5qASUi+GZEPHz/uB/0hjzl5XAEJzvZUYhqz5i5+m9BqfH/Mvp7hS1h/W9r J1c936fUsujw889nNusuipuwUVN9FmQPGvlx4zLWu2ihg80UiPAET5Y7co7+YapH +HYR8V3Bz2VJ0N6NSqkiUF/qkkHDVZH4yf3/y5uVd9ETw= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received-SPF:Authentication-Results:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=v4tCrzWIHwsozfzmZW8Ni7UZJeKsIMEA7H9Uy+/ymXWDND4QCNuDHvFxMkyT70 PpRN0TyHy8qR++F95i0kEHCBd0yh+Llkp3Q8pH+4UcgX7EBTBMszot8Gb5vuCaC+ nmNEBULRjwAHzOpVpeUk8F7xTmNkMmpjvyGK/0bJJJxcg=; Received: (qmail 18458 invoked by alias); 21 Feb 2012 09:45:28 -0000 Received: (qmail 18433 invoked by uid 22791); 21 Feb 2012 09:45:26 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pw0-f47.google.com (HELO mail-pw0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Feb 2012 09:45:02 +0000 Received: by pbcum15 with SMTP id um15so6933223pbc.20 for ; Tue, 21 Feb 2012 01:45:02 -0800 (PST) Received-SPF: pass (google.com: domain of enkovich.gnu@gmail.com designates 10.68.218.167 as permitted sender) client-ip=10.68.218.167; Authentication-Results: mr.google.com; spf=pass (google.com: domain of enkovich.gnu@gmail.com designates 10.68.218.167 as permitted sender) smtp.mail=enkovich.gnu@gmail.com; dkim=pass header.i=enkovich.gnu@gmail.com Received: from mr.google.com ([10.68.218.167]) by 10.68.218.167 with SMTP id ph7mr72397757pbc.110.1329817502532 (num_hops = 1); Tue, 21 Feb 2012 01:45:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.218.167 with SMTP id ph7mr59612215pbc.110.1329817502495; Tue, 21 Feb 2012 01:45:02 -0800 (PST) Received: by 10.68.132.72 with HTTP; Tue, 21 Feb 2012 01:45:02 -0800 (PST) Date: Tue, 21 Feb 2012 13:45:02 +0400 Message-ID: Subject: [google/gcc-4_6_2-mobile, PATCH] Enable stack protector for Android target From: Ilya Enkovich To: gcc-patches Cc: Jing Yu , "H.J. Lu" , pavel.v.chupin@gmail.com X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello, Here is a patch which enables stack protector feature for Android targets. OK for google/gcc-4_6_2-mobile branch? Thanks, Ilya --- 2012-02-21 Enkovich Ilya * gcc/configure.ac : Enable stack protector for Android target. * gcc/configure : Regenerated. Index: gcc/configure.ac =================================================================== --- gcc/configure.ac (revision 184395) +++ gcc/configure.ac (working copy) @@ -4389,6 +4389,8 @@ gcc_cv_libc_provides_ssp, [gcc_cv_libc_provides_ssp=no case "$target" in + *-android-*) + gcc_cv_libc_provides_ssp=yes;; *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu) [# glibc 2.4 and later provides __stack_chk_fail and # either __stack_chk_guard, or TLS access to stack guard canary.