From dfeb8a0766dae8b16deb53c601066c3ee19001b4 Mon Sep 17 00:00:00 2001 From: ro Date: Tue, 17 Jan 2012 09:50:37 +0000 Subject: [PATCH] Disable dl_iterate_phdr on Solaris 10 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on Solaris 11+. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183235 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/configure | 6 +++++- gcc/configure.ac | 6 +++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9efdd70ddbf..4d3a46fe6ea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-01-17 Rainer Orth + + * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on + Solaris 11+. + * configure: Regenerate. + 2012-01-16 Jan Hubicka PR c/12245 diff --git a/gcc/configure b/gcc/configure index f1a6b627e0d..96998911229 100755 --- a/gcc/configure +++ b/gcc/configure @@ -26726,7 +26726,11 @@ fi $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; } gcc_cv_target_dl_iterate_phdr=unknown case "$target" in - *-*-solaris2*) + # Restrict to Solaris 11+. While most of the Solaris 11 linker changes + # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in + # libdl there, both complicating its use and breaking compatibility + # between Solaris 10 updates. + *-*-solaris2.1[1-9]*) # needs both a dl_iterate_phdr declaration and support for # compilation with largefile support. if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \ diff --git a/gcc/configure.ac b/gcc/configure.ac index b486acea39a..01e37b38b6e 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4642,7 +4642,11 @@ fi AC_MSG_CHECKING(dl_iterate_phdr in target C library) gcc_cv_target_dl_iterate_phdr=unknown case "$target" in - *-*-solaris2*) + # Restrict to Solaris 11+. While most of the Solaris 11 linker changes + # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in + # libdl there, both complicating its use and breaking compatibility + # between Solaris 10 updates. + *-*-solaris2.1[[1-9]]*) # needs both a dl_iterate_phdr declaration and support for # compilation with largefile support. if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \ -- 2.11.0