From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10030 invoked by alias); 21 Oct 2008 13:58:39 -0000 Received: (qmail 10022 invoked by uid 22791); 21 Oct 2008 13:58:39 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.29.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Oct 2008 13:57:48 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id m9LDv3pO604336 for ; Tue, 21 Oct 2008 13:57:03 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9LDv3hs3473440 for ; Tue, 21 Oct 2008 15:57:03 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9LDv3it004467 for ; Tue, 21 Oct 2008 15:57:03 +0200 Received: from d12ml069.megacenter.de.ibm.com (d12ml069.megacenter.de.ibm.com [9.149.167.186]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m9LDv3gO004464; Tue, 21 Oct 2008 15:57:03 +0200 Subject: [PATCH] SPU: Use FRAME_GROWS_DOWNWARD X-KeepSent: D6AEEC33:3670577D-C12574E9:004501FF; type=4; name=$KeepSent To: gcc-patches Cc: trevor_smigiel@playstation.sony.com, andrew_pinski@playstation.sony.com X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008 Message-ID: From: Stefan Schulze Frielinghaus Date: Tue, 21 Oct 2008 15:07:00 -0000 MIME-Version: 1.0 Content-type: multipart/mixed; Boundary="0__=4EBBFE7ADFD6876F8f9e8a93df938690918c4EBBFE7ADFD6876F" Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00867.txt.bz2 --0__=4EBBFE7ADFD6876F8f9e8a93df938690918c4EBBFE7ADFD6876F Content-type: text/plain; charset=US-ASCII Content-length: 976 Hi, to use the Stack Smashing Protector the frame needs to grow downwards. Attached patch accomplishes that for the Cell B.E. SPU architecture. Tested against regression suite without any difference in pass/fail statistics (except the extra test passes for SSP).. OK for mainline? (See attached file: spu.patch) Mit freundlichen Gruessen / Kind regards Stefan Schulze Frielinghaus IBM Systems & Technology Group, Systems Software Development SW Linux on Cell BE Development & Evaluation ------------------------------------------------------------------------------- IBM Deutschland Schoenaicher Str. 220 71032 Boeblingen Phone: ++49-(0)7031-16-2173 E-Mail: xxschulz@de.ibm.com ------------------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschaeftsfuehrung: Herbert Kircher Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 --0__=4EBBFE7ADFD6876F8f9e8a93df938690918c4EBBFE7ADFD6876F Content-type: application/octet-stream; name="spu.patch" Content-Disposition: attachment; filename="spu.patch" Content-transfer-encoding: base64 Content-length: 8040 MjAwOC0xMC0yMSAgU3RlZmFuIFNjaHVsemUgRnJpZWxpbmdoYXVzICA8eHhz Y2h1bHpAZGUuaWJtLmNvbT4KCgkqIGNvbmZpZ3VyZS5hYzogUmVtb3ZlIHNr aXAgZGlyIGxpYnNzcCBvZiBTUFUgYXJjaC4KCSogY29uZmlndXJlOiBSZS1n ZW5lcmF0ZS4KCgkqIGdjYy9jb25maWcvc3B1L3NwdS5oIChGUkFNRV9HUk9X U19ET1dOV0FSRCkKCShJTklUSUFMX0ZSQU1FX1BPSU5URVJfT0ZGU0VUKTog RGVmaW5lCglGUkFNRV9HUk9XU19ET1dOV0FSRCB0byAxIGFuZCByZW1vdmUg dW51c2VkCglJTklUSUFMX0ZSQU1FX1BPSU5URVJfT0ZGU0VULgoJKiBnY2Mv Y29uZmlnL3NwdS9zcHUuYyAoc3B1X2luaXRpYWxfZWxpbWluYXRpb25fb2Zm c2V0KTogQ2FsY3VsYXRlIG5ldwoJb2Zmc2V0IGlmIGVsaW1pbmF0aW5nIHNv ZnQgZnJhbWUgcG9pbnRlci4KCSogZ2NjL2NvbmZpZy9zcHUvc3B1Lm1kIChz dGFja19wcm90ZWN0X3NldCwgc3RhY2tfcHJvdGVjdF90ZXN0KQoJKHN0YWNr X3Byb3RlY3RfdGVzdF9zaSk6IEFkZCBpbml0aWFsIG1hY2hpbmUgZGVzY3Jp cHRpb24KCWZvciBTdGFjayBTbWFzaGluZyBQcm90ZWN0b3IKCkluZGV4OiBj b25maWd1cmUKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gY29uZmlndXJl CShyZXZpc2lvbiAxNDExMDUpCisrKyBjb25maWd1cmUJKHdvcmtpbmcgY29w eSkKQEAgLTI2NTYsNyArMjY1Niw2IEBACiAgIHNwYXJjLSotc29sYXJpcyog fCBzcGFyYzY0LSotc29sYXJpcyogfCBzcGFyY3Y5LSotc29sYXJpcyopCiAg ICAgOzsKICAgc3B1LSotKikKLSAgICBza2lwZGlycz0idGFyZ2V0LWxpYnNz cCIKICAgICA7OwogICB2ODEwLSotKikKICAgICBub2NvbmZpZ2RpcnM9IiRu b2NvbmZpZ2RpcnMgYmZkIGJpbnV0aWxzIGdhcyBnY2MgZ2RiIGxkIHRhcmdl dC1saWJzdGRjKystdjMgb3Bjb2RlcyB0YXJnZXQtbGliZ2xvc3MgJHtsaWJn Y2p9IgpJbmRleDogZ2NjL2NvbmZpZy9zcHUvc3B1LmMKPT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PQotLS0gZ2NjL2NvbmZpZy9zcHUvc3B1LmMJKHJldmlzaW9u IDE0MTEwNSkKKysrIGdjYy9jb25maWcvc3B1L3NwdS5jCSh3b3JraW5nIGNv cHkpCkBAIC0xNzU5LDggKzE3NTksOCBAQAogICAgVGhlIHN0YWNrIGZyYW1l IGxvb2tzIGxpa2UgdGhpczoKICAgICAgICAgICstLS0tLS0tLS0tLS0tKwog ICAgICAgICAgfCAgaW5jb21pbmcgICB8IAotICAgICAgQVAgfCAgICBhcmdz ICAgICB8IAotICAgICAgICAgKy0tLS0tLS0tLS0tLS0rCisgICAgICAgICB8 ICAgIGFyZ3MgICAgIHwgCisgICBBUCAtPiArLS0tLS0tLS0tLS0tLSsKICAg ICAgICAgIHwgJGxyIHNhdmUgICAgfAogICAgICAgICAgKy0tLS0tLS0tLS0t LS0rCiAgcHJldiBTUCB8IGJhY2sgY2hhaW4gIHwgCkBAIC0xNzcwLDEwICsx NzcwLDEwIEBACiAgICAgICAgICArLS0tLS0tLS0tLS0tLSsKICAgICAgICAg IHwgICAgLi4uICAgICAgfCAKICAgICAgICAgIHwgc2F2ZWQgcmVncyAgfCBz cHVfc2F2ZWRfcmVnc19zaXplKCkgYnl0ZXMKLSAgICAgICAgICstLS0tLS0t LS0tLS0tKworICAgRlAgLT4gKy0tLS0tLS0tLS0tLS0rCiAgICAgICAgICB8 ICAgIC4uLiAgICAgIHwgCi0gICAgICBGUCB8ICAgdmFycyAgICAgIHwgZ2V0 X2ZyYW1lX3NpemUoKSAgYnl0ZXMKLSAgICAgICAgICstLS0tLS0tLS0tLS0t KworICAgICAgICAgfCAgIHZhcnMgICAgICB8IGdldF9mcmFtZV9zaXplKCkg IGJ5dGVzCisgIEhGUCAtPiArLS0tLS0tLS0tLS0tLSsKICAgICAgICAgIHwg ICAgLi4uICAgICAgfCAKICAgICAgICAgIHwgIG91dGdvaW5nICAgfCAKICAg ICAgICAgIHwgICAgYXJncyAgICAgfCBjcnRsLT5vdXRnb2luZ19hcmdz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CisgICAobWF0Y2hfb3BlcmFuZCAxICJt ZW1vcnlfb3BlcmFuZCIgIiIpCisgICAobWF0Y2hfb3BlcmFuZCAyICIiICIi KV0KKyAgIiIKK3sKKyAgcnR4IGNvbXBhcmVfcmVzdWx0OworICBydHggYmNv bXAsIGxvY19yZWY7CisKKyAgY29tcGFyZV9yZXN1bHQgPSBnZW5fcmVnX3J0 eCAoU0ltb2RlKTsKKworICBlbWl0X2luc24gKGdlbl9zdGFja19wcm90ZWN0 X3Rlc3Rfc2kgKGNvbXBhcmVfcmVzdWx0LAorICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIG9wZXJhbmRzWzBdLAorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wZXJhbmRzWzFdKSk7 CisKKyAgYmNvbXAgPSBnZW5fcnR4X05FIChTSW1vZGUsIGNvbXBhcmVfcmVz dWx0LCBjb25zdDBfcnR4KTsKKworICBsb2NfcmVmID0gZ2VuX3J0eF9MQUJF TF9SRUYgKFZPSURtb2RlLCBvcGVyYW5kc1syXSk7CisKKyAgZW1pdF9qdW1w X2luc24gKGdlbl9ydHhfU0VUIChWT0lEbW9kZSwgcGNfcnR4LAorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZW5fcnR4X0lGX1RIRU5f RUxTRSAoVk9JRG1vZGUsIGJjb21wLAorICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9jX3JlZiwg cGNfcnR4KSkpOworCisgIERPTkU7Cit9KQorCisoZGVmaW5lX2luc24gInN0 YWNrX3Byb3RlY3RfdGVzdF9zaSIKKyAgWyhzZXQgKG1hdGNoX29wZXJhbmQ6 U0kgMCAicmVnaXN0ZXJfb3BlcmFuZCIgIityIikKKyAgICAgICAgKHVuc3Bl YzpTSSBbKG1hdGNoX29wZXJhbmQ6U0kgMSAibWVtb3J5X29wZXJhbmQiICJt IikKKyAgICAgICAgICAgICAgICAgICAgKG1hdGNoX29wZXJhbmQ6U0kgMiAi bWVtb3J5X29wZXJhbmQiICJtIildCisgICAgICAgICAgICAgICAgICAgVU5T UEVDX1NQX1RFU1QpKQorICAgKHNldCAobWF0Y2hfc2NyYXRjaDpTSSAzICI9 JnIiKSAoY29uc3RfaW50IDApKV0KKyAgIiIKKyAgImxxZFx0JTAsJTFcO2xx clx0JTMsJTJcO2NlcVx0JTAsJTAsJTNcO3hvclx0JTMsJTMsJTMiCisgIFso c2V0X2F0dHIgImxlbmd0aCIgIjE2IikKKyAgIChzZXRfYXR0ciAidHlwZSIg Im11bHRpMCIpXQorKQorCkluZGV4OiBjb25maWd1cmUuYWMKPT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PQotLS0gY29uZmlndXJlLmFjCShyZXZpc2lvbiAxNDEx MDUpCisrKyBjb25maWd1cmUuYWMJKHdvcmtpbmcgY29weSkKQEAgLTg5Miw3 ICs4OTIsNiBAQAogICBzcGFyYy0qLXNvbGFyaXMqIHwgc3BhcmM2NC0qLXNv bGFyaXMqIHwgc3BhcmN2OS0qLXNvbGFyaXMqKQogICAgIDs7CiAgIHNwdS0q LSopCi0gICAgc2tpcGRpcnM9InRhcmdldC1saWJzc3AiCiAgICAgOzsKICAg djgxMC0qLSopCiAgICAgbm9jb25maWdkaXJzPSIkbm9jb25maWdkaXJzIGJm ZCBiaW51dGlscyBnYXMgZ2NjIGdkYiBsZCB0YXJnZXQtbGlic3RkYysrLXYz IG9wY29kZXMgdGFyZ2V0LWxpYmdsb3NzICR7bGliZ2NqfSIK --0__=4EBBFE7ADFD6876F8f9e8a93df938690918c4EBBFE7ADFD6876F--