In a updated binutils git tree: $ CC="gcc" CFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-all" ./configure && make -j10 && make -j10 check
<snip> Running /home/xake/devel/testcases/binutils/ld/testsuite/ld-elfvsb/elfvsb.exp ... FAIL: common hidden symbol FAIL: weak hidden symbol DSO last FAIL: weak hidden symbol DSO first However if I try build it with -fstack-protector or -fno-stack-protector all checks passes fine. The tests fails because the link command does not link with anything, but -fstack-protector-all needs the final binary to be linked against libc, else it will not find all its symbols. If I add -fno-stack-protector to the CFLAGS in elfvsb.exp it also passes. However I do not know how to write the code for runtest to make this change in a portable and reliable way. config/default.exp has a logic to determine if it uses gcc, should I do a similar check for elfvsb.exp and add -fno-stack-protector to the end of CFLAGS if gcc is used?? -- Summary: bintuils testsuit fails if built with CFLAGS="-fstack- protector-all" Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: xake at rymdraket dot net CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11633 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils