[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A serious stack issue caused by gcc optimization
From: |
Bean |
Subject: |
Re: A serious stack issue caused by gcc optimization |
Date: |
Wed, 4 Mar 2009 00:06:23 +0800 |
On Tue, Mar 3, 2009 at 10:51 PM, phcoder <address@hidden> wrote:
> Hello
> Have you tried -mno-red-zone? Here is an extract from man gcc:
> -mno-red-zone
> Do not use a so called red zone for x86-64 code. The red zone is
> mandated by the x86-64 ABI, it is a 128-byte area beyond the
> location of the stack pointer that will not be modified by signal
> or interrupt handlers and therefore can be used for temporary data
> without adjusting the stack pointer. The flag -mno-red-zone
> disables this red zone.
Hi,
Oh, thanks a lot, this option does the trick. Here is the patch file.
--
Bean
amd64_efi.diff
Description: Binary data