From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32628 invoked by alias); 15 Apr 2004 15:15:11 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 32581 invoked from network); 15 Apr 2004 15:15:10 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 15 Apr 2004 15:15:10 -0000 Received: (qmail 18795 invoked by uid 10); 15 Apr 2004 15:15:08 -0000 Received: (qmail 6996 invoked by uid 500); 15 Apr 2004 15:12:08 -0000 From: Ian Lance Taylor To: Raphael Zulliger Cc: gcc-help@gcc.gnu.org Subject: Re: Add additional code to function (c/c++) while compiling References: <412216C6.2020408@indel.ch> Date: Thu, 15 Apr 2004 15:15:00 -0000 In-Reply-To: <412216C6.2020408@indel.ch> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-04/txt/msg00191.txt.bz2 Raphael Zulliger writes: > i would like to add a very simple stack-protection (for our own-brewed > os) to the code compiled with gcc 3.x. therefore i should be able to > add about 5 lines of PPC assembler to each function body... first i > hoped this should be quite easy - but it seams to be harder than > expected. at least for me. You might try taking a look at how -fstack-check is implemented. Ian