This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
modify gcc stack
- From: Lisa Alano <alano at cs dot uchicago dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 4 Dec 2006 01:57:58 -0600 (CST)
- Subject: modify gcc stack
Hi,
Can anybody give me a clue as to how to approach the problem of modifying
the stack layout for gcc? I am not a compiler expert, but am trying to
experiment with a new chip architecture that uses a special instruction
that adds an extra 4 bytes after a buffer declaration or after the return
address. (I guess it would be similar to adding a canary like propolice or
stackguard) Can anybody help or point me in the right direction?
Thanks.
~lisa