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

http://github.com/abeaumont/factor · Factor · 23 lines · 17 code · 4 blank · 2 comment · 0 complexity · 4b8bc9c551f343d1299759bd325ab374 MD5 · raw file

  1. ! Copyright (C) 2010 Erik Charlebois.
  2. ! See http://factorcode.org/license.txt for BSD license.
  3. USING: elf help.markup help.syntax ;
  4. IN: elf.nm
  5. HELP: elf-nm
  6. { $values
  7. { "path" "a pathname string" }
  8. }
  9. { $description "Prints information about the symbols in the ELF object at the given path." } ;
  10. HELP: print-symbol
  11. { $values
  12. { "sections" "sequence of section" } { "symbol" symbol }
  13. }
  14. { $description "Prints the value, section and name of the given symbol." } ;
  15. ARTICLE: "elf.nm" "ELF nm"
  16. "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."
  17. { $subsections elf-nm }
  18. ;
  19. ABOUT: "elf.nm"