This avoids small data/gp reloc overflow errors.
* configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare $name as array of characters with unknown bound. Also store into the array. * configure: Regenerate. From-SVN: r104964
This commit is contained in:
parent
f6cf6841d0
commit
063e53d657
@ -1,3 +1,10 @@
|
|||||||
|
2005-10-04 James E Wilson <wilson@specifix.com>
|
||||||
|
|
||||||
|
* configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare
|
||||||
|
$name as array of characters with unknown bound. Also store into the
|
||||||
|
array.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2005-09-30 James E. Wilson <wilson@specifix.com>
|
2005-09-30 James E. Wilson <wilson@specifix.com>
|
||||||
|
|
||||||
* configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
|
* configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
|
||||||
|
4
libmudflap/configure
vendored
4
libmudflap/configure
vendored
@ -6926,11 +6926,11 @@ _ACEOF
|
|||||||
cat confdefs.h >>conftest.$ac_ext
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
extern char $name;
|
extern char $name[];
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
$name = 0;
|
$name[0] = 0;
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ AC_SUBST(SECTION_FLAGS)
|
|||||||
AC_CACHE_CHECK([for the name of the symbol used for the entry point],
|
AC_CACHE_CHECK([for the name of the symbol used for the entry point],
|
||||||
[mudflap_cv_entry_point], [
|
[mudflap_cv_entry_point], [
|
||||||
for name in _start __start unknown; do
|
for name in _start __start unknown; do
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name;], [$name = 0;])],
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name@<:@@:>@;], [$name@<:@0@:>@ = 0;])],
|
||||||
[break])
|
[break])
|
||||||
done
|
done
|
||||||
mudflap_cv_entry_point="$name"])
|
mudflap_cv_entry_point="$name"])
|
||||||
|
Loading…
Reference in New Issue
Block a user