PROPHET/OS
NAME
symbols: one line per symbol of the object
SYNOPSIS
symbols [--defined] [--global] <object>|selbsttest
DESCRIPTION
One line per symbol of the object
the value in sixteen hex digits, the letter, the name. That is what a foreign nm does, and the build calls it twice: over the kernel, to see that no symbol it carries is longer than the heads allow, and over uefi.elf, whose list tools/peheader.py reads to find the entry and the bounds of the three sections. As long as those calls stand, ProphetOS cannot build itself (R10-SELF-06).
A symbol without a place carries no value, so its line has two fields and not three. Whoever counts fields sorts it out by that alone, and the three readers in the build do exactly that.
The letter says where the symbol lies: T text, D data, B the part that takes room and carries no bytes, R what is only read, A an absolute number, U without a place. Upper case is outward, lower case is the object's own.
--defined leaves out the symbols that have no place. --global leaves out the object's own, so what stays is what another object may call.
The order is the order of the table. A list that sorts itself has to hold every name at once, and the kernel carries thousands.
selbsttest reads a module of this machine and holds three things: a symbol table is there, a narrower question never gives more lines than the wide one, and a file without the ELF mark is refused instead of read as one. It is what shell.the_symbols_of_an_object_are_read_and_narrowed drives.
EXAMPLE
$ symbols --help symbols [--defined] [--global] <object>|selbsttest one line per symbol: value, letter, name --defined only the symbols that have a place --global only the symbols another object may call