Gentoo Archives: gentoo-hardened

From: Pedro Venda <pjvenda@××××××××××××.org>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] how to find out if something was compiled with -fstack-protector?
Date: Wed, 11 May 2005 16:00:20
Message-Id: 200505111700.21019.pjvenda@arrakis.dhis.org
In Reply to: Re: [gentoo-hardened] how to find out if something was compiled with -fstack-protector? by Mike Frysinger
1 On Wednesday 11 May 2005 16:32, Mike Frysinger wrote:
2 > On Wednesday 11 May 2005 08:04 am, Rob Holland wrote:
3 > > On Wed, May 11, 2005 at 10:51:18AM +0100, Pedro Venda wrote:
4 > > > I'm left with a doubt: how to find out if some binary was compiled with
5 > > > -fstack-protector gcc option?
6 > >
7 > > I think: nm /bin/foo|grep guard
8 > > should tell you, if you see a guard symbol, it has ssp.
9 >
10 > nm doesnt always worked (it'll fail on stripped binaries), but `readelf -s
11 > foo
12 >
13 > | grep guard` should work fine
14 >
15 > -mike
16
17 thanks everyone :-)
18
19 regards,
20 pedro venda.
21 --
22
23 Pedro João Lopes Venda
24 email: pjvenda < at > arrakis.dhis.org
25 http://arrakis.dhis.org