factor/extra/elf/nm/nm-docs.factor

24 lines
816 B
Factor
Raw Normal View History

2010-04-12 22:10:20 -04:00
! Copyright (C) 2010 Erik Charlebois.
! See http://factorcode.org/license.txt for BSD license.
USING: elf help.markup help.syntax ;
IN: elf.nm
2010-04-15 00:50:23 -04:00
HELP: elf-nm
2010-04-12 22:10:20 -04:00
{ $values
{ "path" "a pathname string" }
}
{ $description "Prints information about the symbols in the ELF object at the given path." } ;
HELP: print-symbol
{ $values
{ "sections" "sequence of section" } { "symbol" symbol }
}
{ $description "Prints the value, section and name of the given symbol." } ;
ARTICLE: "elf.nm" "ELF nm"
2010-04-13 00:23:26 -04:00
"The " { $vocab-link "elf.nm" } " vocab prints the values, sections and names of the symbols in a given ELF file. In an ELF executable or shared library, the symbol values are typically their virtual addresses. In a relocatable ELF object, they are section-relative offsets."
2010-04-15 00:50:23 -04:00
{ $subsections elf-nm }
2010-04-12 22:10:20 -04:00
;
ABOUT: "elf.nm"