Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] how to turn off hardened gcc flags reliably?
Date: Thu, 02 Mar 2006 01:05:36
Message-Id: 200603012003.19490.vapier@gentoo.org
In Reply to: [gentoo-dev] how to turn off hardened gcc flags reliably? by Duncan Coutts
1 On Wednesday 01 March 2006 10:35, Duncan Coutts wrote:
2 > Does anyone have any other suggestions?
3
4 i dont know exactly what you're trying to accomplish, but the way wine does it
5 is by faking out the ssp symbols
6
7 in their loader, they add (for gcc-4.1+):
8 void *__stack_chk_guard = 0;
9 void _stack_chk_fail(void) { return; }
10
11 older versions of ssp used diff symbols, so i patch in these for wine:
12 void *__guard = 0;
13 void __stack_smash_handler(void) { return; }
14 -mike
15 --
16 gentoo-dev@g.o mailing list