diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-06-13 03:34:18 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-06-13 03:34:18 +0000 |
commit | fe1bdbab88774dd0b581b085d5bd355f2b2ab86b (patch) | |
tree | 7fec591016d5f0ccde0ed562abed828e9c5c0a91 /libexec/ld.so/test/libbar.c | |
parent | 6e274593757db3e32991b92a21cdd60081006e3d (diff) |
Initial import of ELF ld.so. This was written indepently of the gnu rtld
code and is fully BSD copyrighted.
This initial import contains a mostly working mips and partially working
powerpc version. No support for ld.so.hints or system run path exists.
Diffstat (limited to 'libexec/ld.so/test/libbar.c')
-rw-r--r-- | libexec/ld.so/test/libbar.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libexec/ld.so/test/libbar.c b/libexec/ld.so/test/libbar.c new file mode 100644 index 00000000000..10a3ce8a589 --- /dev/null +++ b/libexec/ld.so/test/libbar.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +extern void dltest(const char *); +extern void dep(const char *s); + +const char *const libname = "libbar.so"; + +void bar(const char *s) +{ + dltest("called from libbar."); + printf("libbar: %s\n", s); + dep("!olleH!"); +} + |