summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-vxworks/rpath-1.d
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-03-28 14:42:28 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2007-03-28 14:42:28 +0000
commitec38189f735f0e1230da031bb55ceaaf4fe844e6 (patch)
tree84473630ac16e072f6fe80297132b63aa71c8c3a /ld/testsuite/ld-vxworks/rpath-1.d
parentb6a851ef92781b07eaf5b8177cf38ce06aaa3018 (diff)
downloadbinutils-redhat-ec38189f735f0e1230da031bb55ceaaf4fe844e6.tar.gz
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.
Diffstat (limited to 'ld/testsuite/ld-vxworks/rpath-1.d')
-rw-r--r--ld/testsuite/ld-vxworks/rpath-1.d6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-vxworks/rpath-1.d b/ld/testsuite/ld-vxworks/rpath-1.d
new file mode 100644
index 0000000000..df67a03ac4
--- /dev/null
+++ b/ld/testsuite/ld-vxworks/rpath-1.d
@@ -0,0 +1,6 @@
+# source: rpath-1.s
+# ld: --entry foo --rpath /dir1 --rpath /dir2 --rpath net:/dir4 --rpath /dir2 --rpath /dir1 --rpath /dir3 --force-dynamic -q
+# readelf: -d
+#...
+ 0x0+f \(RPATH\).*Library rpath: \[/dir1;/dir2;net:/dir4;/dir3\]
+#pass