stack-protector configure test and MIPS64
Joseph S. Myers
joseph@codesourcery.com
Sat May 19 22:36:00 GMT 2012
The check for implicit -fstack-protector breaks on MIPS64 with an error:
configure: error: unexpected symbols in test: __gnu_local_gp
foobar
(__gnu_local_gp is a symbol handled specially by the linker on MIPS.)
The patch below allows the build to continue. But maybe we should just
allow arbitrary extra undefined symbols rather than whitelisting
architecture-specific symbols either here or in preconfigure fragments?
2012-05-19 Joseph Myers <joseph@codesourcery.com>
* configure.in (libc_cv_predef_stack_protector): Remove
__gnu_local_gp from libc_undefs.
* configure: Regenerated.
diff --git a/configure.in b/configure.in
index a9ee733..51fc9c0 100644
--- a/configure.in
+++ b/configure.in
@@ -2071,6 +2071,7 @@ libc_undefs=`$NM -u conftest.o |
2>&AS_MESSAGE_LOG_FD` || {
AC_MSG_ERROR([confusing output from $NM -u])
}
+libc_undefs=`echo "$libc_undefs" | grep -v '^__gnu_local_gp$'`
echo >&AS_MESSAGE_LOG_FD "libc_undefs='$libc_undefs'"
case "$libc_undefs" in
foobar) libc_cv_predef_stack_protector=no ;;
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list