1 ! Copyright (C) 2010 Erik Charlebois.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors byte-arrays elf kernel sequences system tools.test ;
49 "resource:extra/elf/a.elf" [
50 sections [ name>> ] map
78 "resource:extra/elf/a.elf" [
79 segments [ program-header>> p_type>> PT_LOAD = ] find nip
80 sections [ name>> ] map
127 "__do_global_dtors_aux"
135 "__do_global_ctors_aux"
137 "_GLOBAL_OFFSET_TABLE_"
142 "printf@@GLIBC_2.2.5"
146 "_Jv_RegisterClasses"
148 "__libc_start_main@@GLIBC_2.2.5"
162 "resource:extra/elf/a.elf" [
163 sections ".symtab" find-section symbols
171 85 72 137 229 184 44 6 64 0 72 137 199 184 0 0 0 0 232 222
176 "resource:extra/elf/a.elf" [
177 sections ".symtab" "main" find-section-symbol
178 symbol-data >byte-array