summaryrefslogtreecommitdiff
path: root/testelf.c
diff options
context:
space:
mode:
authorSoren Sandmann <sandmann@redhat.com>2006-08-16 17:21:54 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2006-08-16 17:21:54 +0000
commit1f4dd13cd33954835d67c2439e20ad476d1f9e51 (patch)
treef3f393a61c3563f713b8d19809fcc3374c6c382e /testelf.c
parent2bc2e3658d926c7ca2c7a227405ff9735bc1fa1a (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.c24
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);
+ }
+}
+