1 ! Copyright (C) 2010 Erik Charlebois.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: accessors byte-arrays elf kernel sequences system tools.test ;
48 "resource:extra/elf/a.elf" [
49 sections [ name>> ] map
77 "resource:extra/elf/a.elf" [
78 segments [ program-header>> p_type>> PT_LOAD = ] find nip
79 sections [ name>> ] map
126 "__do_global_dtors_aux"
134 "__do_global_ctors_aux"
136 "_GLOBAL_OFFSET_TABLE_"
141 "printf@@GLIBC_2.2.5"
145 "_Jv_RegisterClasses"
147 "__libc_start_main@@GLIBC_2.2.5"
161 "resource:extra/elf/a.elf" [
162 sections ".symtab" find-section symbols
170 85 72 137 229 184 44 6 64 0 72 137 199 184 0 0 0 0 232 222
175 "resource:extra/elf/a.elf" [
176 sections ".symtab" "main" find-section-symbol
177 symbol-data >byte-array