aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/c/hellodyn3.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cris/c/hellodyn3.c')
-rw-r--r--sim/testsuite/cris/c/hellodyn3.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/testsuite/cris/c/hellodyn3.c b/sim/testsuite/cris/c/hellodyn3.c
new file mode 100644
index 0000000..8ae3a4f
--- /dev/null
+++ b/sim/testsuite/cris/c/hellodyn3.c
@@ -0,0 +1,9 @@
+/* Check that invoking ld.so as a program, invoking the main program,
+ works. Jump through a few hoops to avoid reading the host
+ ld.so.cache (having no absolute path specified for the executable
+ falls back on loading through the same mechanisms as a DSO).
+#notarget: *-*-elf
+#dynamic:
+#sim: --sysroot=@exedir@ @exedir@/lib/ld.so.1 --library-path /
+ */
+#include "hello.c"