From 199fa1b7089d7f7438b087fa30504ea5a590f561 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 11 Oct 2016 12:04:42 +0100 Subject: Add support to the static linker for the tokens accepted by the dynamic linker when resolving search paths. PR ld/20535 * emultempl/elf32.em (_search_needed): Add support for pseudo environment variables supported by ld.so. Namely $ORIGIN, $LIB and $PLATFORM. * configure.ac: Add getauxval to list AC_CHECK_FUNCS list. * config.in: Regenerate. * configure: Regenerate. --- ld/emultempl/elf32.em | 151 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) (limited to 'ld/emultempl') diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 2815a3e..06f02c6 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -472,6 +472,15 @@ fragment < +#endif +EOF +fi +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); + + if (end) + /* Restore the path separator. */ + * end = '/'; + } + + free (freeme); + } + needed.name = filename; if (gld${EMULATION_NAME}_try_needed (&needed, force)) return TRUE; -- cgit v1.1