PR binutils/3384
	* configure.in (AC_CHECK_HEADERS): Add limits.h and sys/param.h.
	* configure: Regenerated.
	* config.in: Likewise.

	* readelf.c: Include <limits.h> and <sys/param.h> for PATH_MAX.
	(program_interpreter): Allocate PATH_MAX bytes instead of 64.
	(process_program_headers): Don't assume that program interpreter
	is shorter than 64 characters.
This commit is contained in:
H.J. Lu
2006-10-29 19:07:54 +00:00
parent e2785c4472
commit f8eae8b28b
4 changed files with 43 additions and 4 deletions

4
binutils/configure vendored
View File

@@ -6425,7 +6425,9 @@ done
for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then