This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stack-protector configure test and MIPS64


On Mon, 21 May 2012, Roland McGrath wrote:

> It's might be fine to accept random undefined symbols and just treat
> presence of foobar in that list as the only sanity check.

The following patch does that.  It suffices to make the build work for 
MIPS64; also tested with a full build and testsuite run for x86_64.

2012-05-21  Joseph Myers  <joseph@codesourcery.com>

	* configure.in (libc_cv_predef_stack_protector): Only consider
	"foobar" and "__stack_chk_fail" lines in libc_undefs.
	* configure: Regenerated.

diff --git a/configure.in b/configure.in
index a9ee733..96644c9 100644
--- a/configure.in
+++ b/configure.in
@@ -2072,6 +2072,7 @@ libc_undefs=`$NM -u conftest.o |
   AC_MSG_ERROR([confusing output from $NM -u])
 }
 echo >&AS_MESSAGE_LOG_FD "libc_undefs='$libc_undefs'"
+libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
 case "$libc_undefs" in
 foobar) libc_cv_predef_stack_protector=no ;;
 '__stack_chk_fail

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]