+2018-10-04 Stefan Liebler <stli@linux.ibm.com>
+
+ * support/support.h (support_objdir_elf_ldso): New variable.
+ * support/support_paths.c (support_objdir_elf_ldso): Likewise.
+ * support/Makefile (CFLAGS-support_paths.c): Add definition
+ for OBJDIR_ELF_LDSO_PATH.
+ * support/test-container.c (main): Search for the ld.so
+ which is also used by the testsuite.
+
2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
[BZ #20209]
CFLAGS-support_paths.c = \
-DSRCDIR_PATH=\"`cd .. ; pwd`\" \
-DOBJDIR_PATH=\"`cd $(objpfx)/..; pwd`\" \
+ -DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
-DINSTDIR_PATH=\"$(prefix)\" \
-DLIBDIR_PATH=\"$(libdir)\"
extern const char support_srcdir_root[];
extern const char support_objdir_root[];
+/* Corresponds to the path to the runtime linker used by the testsuite,
+ e.g. OBJDIR_PATH/elf/ld-linux-x86-64.so.2 */
+extern const char support_objdir_elf_ldso[];
+
/* Corresponds to the --prefix= passed to configure. */
extern const char support_install_prefix[];
/* Corresponds to the install's lib/ or lib64/ directory. */
# error please -DOBJDIR_PATH=something in the Makefile
#endif
+#ifdef OBJDIR_ELF_LDSO_PATH
+/* Corresponds to the path to the runtime linker used by the testsuite,
+ e.g. OBJDIR_PATH/elf/ld-linux-x86-64.so.2 */
+const char support_objdir_elf_ldso[] = OBJDIR_ELF_LDSO_PATH;
+#else
+# error please -DOBJDIR_ELF_LDSO_PATH=something in the Makefile
+#endif
+
#ifdef INSTDIR_PATH
/* Corresponds to the --prefix= passed to configure. */
const char support_install_prefix[] = INSTDIR_PATH;
}
}
- if (strncmp (argv[1], concat (support_objdir_root, "/elf/ld-linux-", NULL),
- strlen (support_objdir_root) + 14) == 0)
+ if (strcmp (argv[1], support_objdir_elf_ldso) == 0)
{
++argv;
--argc;