From c76308d222c1144f80f5cd36e8c69952a2594d0a Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 28 Mar 2007 14:42:28 +0000 Subject: ld/ * ld.h (ld_config_type): Add rpath_separator. * ldmain.c (main): Initialize it. * lexsup.c (parse_args): Honor config.rpath_separator. * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise. (gld${EMULATION_NAME}_add_sysroot): Likewise. (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator rather than ':' when building the path. * emultempl/vxworks.em (vxworks_before_parse): New function. Override config.rpath_separator. (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been set to gld${EMULATION_NAME}_after_open; #define that identifier to vxworks_foo instead. (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN. ld/testsuite/ * ld-vxworks/rpath-1.s, ld-vxworks/rpath-1.d, * ld-vxworks/vxworks.exp: New files. --- ld/ld.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ld/ld.h') diff --git a/ld/ld.h b/ld/ld.h index 51a2914..f049c07 100644 --- a/ld/ld.h +++ b/ld/ld.h @@ -277,6 +277,9 @@ typedef struct { unsigned int split_by_reloc; bfd_size_type split_by_file; + /* The rpath separation character. Usually ':'. */ + char rpath_separator; + /* If set, only search library directories explicitly selected on the command line. */ bfd_boolean only_cmd_line_lib_dirs; -- cgit v1.1