diff options
author | Ulrich Drepper <drepper@gmail.com> | 2012-01-27 15:05:19 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-01-27 15:05:19 -0500 |
commit | 6ee65ed6ddbf04402fad0bec6aa9c73b9d982ae4 (patch) | |
tree | a26f39ff87542c60680d6047c512b3009734bf21 /elf/tst-relsort1.c | |
parent | 43455e09166350b1237d2168d1b008c9f47ebaf0 (diff) | |
download | glibc-6ee65ed6ddbf04402fad0bec6aa9c73b9d982ae4.tar.gz |
Sort objects before relocations
Diffstat (limited to 'elf/tst-relsort1.c')
-rw-r--r-- | elf/tst-relsort1.c | 19 |
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" |