This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Use dl_iterate_phdr in Solaris 11+ unwinder


On Mon, 29 Nov 2010, Rainer Orth wrote:

> diff -r 523125a49e71 gcc/configure.ac
> --- a/gcc/configure.ac	Sat Nov 27 11:35:42 2010 +0100
> +++ b/gcc/configure.ac	Mon Nov 29 11:05:51 2010 +0100
> @@ -977,6 +977,9 @@
>  	gettimeofday mbstowcs wcswidth mmap mincore setlocale \
>  	gcc_UNLOCKED_FUNCS)
>  
> +# Check for dl_iterate_phdr.
> +AC_CHECK_FUNCS(dl_iterate_phdr, [have_dl_iterate_phdr=yes])

This is wrong; it's checking for dl_iterate_phdr on the host rather than 
the target.  You can't do target link tests at this point, but you can 
examine target headers to determine whether they declare something.  See 
the logic used by some configure tests to determine glibc_header_dir - 
since that is actually generic logic for locating target headers and has 
nothing to do with glibc, it should probably be refactored into a single 
place.

-- 
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]