summaryrefslogtreecommitdiff
path: root/elf/tst-relsort1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-01-27 15:05:19 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-27 15:05:19 -0500
commit6ee65ed6ddbf04402fad0bec6aa9c73b9d982ae4 (patch)
treea26f39ff87542c60680d6047c512b3009734bf21 /elf/tst-relsort1.c
parent43455e09166350b1237d2168d1b008c9f47ebaf0 (diff)
downloadglibc-6ee65ed6ddbf04402fad0bec6aa9c73b9d982ae4.tar.gz
Sort objects before relocations
Diffstat (limited to 'elf/tst-relsort1.c')
-rw-r--r--elf/tst-relsort1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/tst-relsort1.c b/elf/tst-relsort1.c
new file mode 100644
index 0000000000..972100c0e9
--- /dev/null
+++ b/elf/tst-relsort1.c
@@ -0,0 +1,19 @@
+#include <dlfcn.h>
+#include <stdio.h>
+
+
+static int
+do_test ()
+{
+ const char lib[] = "$ORIGIN/tst-relsort1mod1.so";
+ void *h = dlopen (lib, RTLD_NOW);
+ if (h == NULL)
+ {
+ puts (dlerror ());
+ return 1;
+ }
+ return 0;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"