]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove support for $PLATFORM in rpath search paths.
authorNick Clifton <nickc@redhat.com>
Fri, 4 Nov 2016 13:57:40 +0000 (13:57 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 4 Nov 2016 13:57:40 +0000 (13:57 +0000)
* emultempl/elf32.em (search_needed): Remove use of getauxval and
inclusion of <sys/auxv.h>.  Replace support for $PLATFORM with a
warning message.
* configure.ac (AC_CHECK_FUNCS): Remove getauxval.
* configure: Regenerate.
* config.in: Regenerate.

ld/ChangeLog
ld/config.in
ld/configure
ld/configure.ac
ld/emultempl/elf32.em

index 577af33056045433b2adede5d1c83184b49c7d56..0513d2e1a60b237ce33298f730f561fa1658da4a 100644 (file)
@@ -1,3 +1,12 @@
+2016-11-04  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/elf32.em (search_needed): Remove use of getauxval and
+       inclusion of <sys/auxv.h>.  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  <andrew.burgess@embecosm.com>
 
        * ldlang.h (struct lang_wild_statement_struct): Add
index 5c614ed1a2e5f7fcabe61bff16d8d20a442b76fa..2c6d698b6ce14b091b21aa592a6e9d666f345188 100644 (file)
@@ -62,9 +62,6 @@
 /* Define to 1 if you have the <fcntl.h> 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
 
index 2c55b2873819cec028fc307305f5f70ae579b0e3..3f82f35fdd9301d83f5d90d7b2958fdcf052104e 100755 (executable)
@@ -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"
index 454284502f629690259c492be4b95944d025765a..d17281f0a0cb42ab22b5edfb33467bb9463a789d 100644 (file)
@@ -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)
index 06f02c6d860e2137a433d9d692cbd083122bb10c..57252da13574975fa449b69f0277f3d717ece4b2 100644 (file)
@@ -472,16 +472,6 @@ fragment <<EOF
   return TRUE;
 }
 
-EOF
-if [ "x${NATIVE}" = xyes ] ; then
-fragment <<EOF
-#ifdef HAVE_GETAUXVAL
-#include <sys/auxv.h>
-#endif
-EOF
-fi
-fragment <<EOF
-
 /* Search for a needed file in a path.  */
 
 static bfd_boolean
@@ -615,25 +605,12 @@ gld${EMULATION_NAME}_search_needed (const char *path,
            case 'P':
              if (strcmp (var + 2, "LATFORM") == 0)
                {
-                 /* PLATFORM - replace with a string corresponding
-                    to the processor type of the host system.
-
-                    FIXME: Supporting this token might be a bad idea,
-                    especially for non-native linkers.  It has the potential
-                    to find incorrect results.  Maybe issuing a warning
-                    message would be safer.  Current policy: wait and see if
-                    somebody complains.  */
-                 replacement = "$OUTPUT_ARCH";
-EOF
-# We use getauxval() if it is available, but only for natives.
-if [ "x${NATIVE}" = xyes ] ; then
-fragment <<EOF
-#ifdef HAVE_GETAUXVAL
-                 replacement = (char *) getauxval (AT_PLATFORM);
-#endif
-EOF
-fi
-fragment <<EOF
+                 /* Supporting $PLATFORM in a cross-hosted environment is not
+                    possible.  Supporting it in a native environment involves
+                    loading the <sys/auxv.h> header file which loads the
+                    system <elf.h> header file, which conflicts with the
+                    "include/elf/mips.h" header file.  */
+                 replacement = NULL;
                }
              break;
 
@@ -665,7 +642,7 @@ fragment <<EOF
                /* We only issue an "unrecognised" message in verbose mode
                   as the $<foo> 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.  */