diff options
Diffstat (limited to 'elf/tst-dl_find_object-mod2.c')
-rw-r--r-- | elf/tst-dl_find_object-mod2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/elf/tst-dl_find_object-mod2.c b/elf/tst-dl_find_object-mod2.c new file mode 100644 index 0000000000..3dad31c97c --- /dev/null +++ b/elf/tst-dl_find_object-mod2.c @@ -0,0 +1,15 @@ +#include <dlfcn.h> + +char mod2_data; + +void +mod2_function (void (*f) (void)) +{ + /* Make sure this is not a tail call and unwind information is + therefore needed. */ + f (); + f (); +} + +/* Used to verify that _dl_find_object after static dlopen works. */ +void *find_object = _dl_find_object; |