diff options
author | Soren Sandmann <sandmann@redhat.com> | 2006-08-16 17:21:54 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2006-08-16 17:21:54 +0000 |
commit | 1f4dd13cd33954835d67c2439e20ad476d1f9e51 (patch) | |
tree | f3f393a61c3563f713b8d19809fcc3374c6c382e /testelf.c | |
parent | 2bc2e3658d926c7ca2c7a227405ff9735bc1fa1a (diff) |
Really add this file.
2006-08-16 Soren Sandmann <sandmann@redhat.com>
* testelf.c: Really add this file.
Diffstat (limited to 'testelf.c')
-rw-r--r-- | testelf.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testelf.c b/testelf.c new file mode 100644 index 0000000..fa3bcb5 --- /dev/null +++ b/testelf.c @@ -0,0 +1,24 @@ +#include <glib.h> +#include "elfparser.h" + +int +main () +{ + int i; + + GMappedFile *libgtk = g_mapped_file_new ("/usr/lib/libgtk-x11-2.0.so", + FALSE, NULL); + + +#if 0 + for (i = 0; i < 50000; ++i) +#endif + { + ElfParser *elf = elf_parser_new ( + g_mapped_file_get_contents (libgtk), + g_mapped_file_get_length (libgtk)); + + elf_parser_lookup_symbol (elf, 1000); + } +} + |