Really add this file.

2006-08-16  Soren Sandmann  <sandmann@redhat.com>

	* testelf.c: Really add this file.
This commit is contained in:
Soren Sandmann
2006-08-16 17:21:54 +00:00
committed by Søren Sandmann Pedersen
parent 2bc2e3658d
commit 1f4dd13cd3
4 changed files with 141 additions and 11 deletions

24
testelf.c Normal file
View File

@ -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);
}
}