This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Add additional code to function (c/c++) while compiling
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Raphael Zulliger <zulliger at indel dot ch>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 15 Apr 2004 11:12:08 -0400
- Subject: Re: Add additional code to function (c/c++) while compiling
- References: <412216C6.2020408@indel.ch>
Raphael Zulliger <zulliger@indel.ch> 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