This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Binutils, its testcases and -fstack-protector-all
- From: Peter Hjalmarsson <xake at rymdraket dot net>
- To: binutils at sourceware dot org
- Date: Fri, 14 May 2010 21:11:21 +0200
- Subject: Binutils, its testcases and -fstack-protector-all
Hello.
If you:
export CC="gcc"
export CFLAGS="-march=native -pipe -O2 -fstack-protector-all"
cd binutils
./configure
make
make check
you will get:
Running binutils/ld/testsuite/ld-elfvsb/elfvsb.exp ...
FAIL: common hidden symbol
FAIL: weak hidden symbol DSO last
FAIL: weak hidden symbol DSO first
This because if you compile a object with -fstackprotector-all it needs
to link against libc. Now as I see it there are three ways to handle
this:
1. somehow make gcc compile this test with -fno-stack-protector
2. somehow make ld link this test against libc
3. tell users to not compile binutils with -fstack-protector-all if you
want to run the testsuit
What sound like a good thing?
Regards
Peter Hjalmarsson