From 88ba72a2dfae2e71e3b0798ac74c6853749fd502 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 4 Nov 2016 13:57:40 +0000 Subject: [PATCH] Remove support for $PLATFORM in rpath search paths. * emultempl/elf32.em (search_needed): Remove use of getauxval and inclusion of . Replace support for $PLATFORM with a warning message. * configure.ac (AC_CHECK_FUNCS): Remove getauxval. * configure: Regenerate. * config.in: Regenerate. --- ld/ChangeLog | 9 +++++++++ ld/config.in | 3 --- ld/configure | 2 +- ld/configure.ac | 2 +- ld/emultempl/elf32.em | 37 +++++++------------------------------ 5 files changed, 18 insertions(+), 35 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 577af330560..0513d2e1a60 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2016-11-04 Nick Clifton + + * emultempl/elf32.em (search_needed): Remove use of getauxval and + inclusion of . Replace support for $PLATFORM with a + warning message. + * configure.ac (AC_CHECK_FUNCS): Remove getauxval. + * configure: Regenerate. + * config.in: Regenerate. + 2016-11-04 Andrew Burgess * ldlang.h (struct lang_wild_statement_struct): Add diff --git a/ld/config.in b/ld/config.in index 5c614ed1a2e..2c6d698b6ce 100644 --- a/ld/config.in +++ b/ld/config.in @@ -62,9 +62,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H -/* Define to 1 if you have the `getauxval' function. */ -#undef HAVE_GETAUXVAL - /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE diff --git a/ld/configure b/ld/configure index 2c55b287381..3f82f35fdd9 100755 --- a/ld/configure +++ b/ld/configure @@ -16488,7 +16488,7 @@ _ACEOF fi done -for ac_func in getauxval open lseek close +for ac_func in open lseek close do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/ld/configure.ac b/ld/configure.ac index 454284502f6..d17281f0a0c 100644 --- a/ld/configure.ac +++ b/ld/configure.ac @@ -216,7 +216,7 @@ AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h local AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h) ACX_HEADER_STRING AC_CHECK_FUNCS(glob mkstemp realpath sbrk setlocale waitpid) -AC_CHECK_FUNCS(getauxval open lseek close) +AC_CHECK_FUNCS(open lseek close) AC_HEADER_DIRENT dnl AC_CHECK_HEADERS(sys/mman.h) diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 06f02c6d860..57252da1357 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -472,16 +472,6 @@ fragment < -#endif -EOF -fi -fragment < header file which loads the + system header file, which conflicts with the + "include/elf/mips.h" header file. */ + replacement = NULL; } break; @@ -665,7 +642,7 @@ fragment < token might be a legitimate component of a path name in the target's file system. */ - info_msg (_("unrecognised token '%s' in search path\n"), var); + info_msg (_("unrecognised or unsupported token '%s' in search path\n"), var); if (end) /* Restore the path separator. */ -- 2.30.2