PROPHET/OS
NAME
symoff: where a symbol lies, counted from a base
SYNOPSIS
symoff <object> <base> <symbol> symoff <object> <base> --header <file> <MACRO>=<symbol>...
DESCRIPTION
Where a symbol lies, counted from a base
The first form prints how far <symbol> lies above <base>, in decimal, one line. The second writes a header with one #define <MACRO> <n>u per pair, the names padded to one column, and writes it only when a byte changes. <base> is decimal or 0x hex. A symbol that is missing, lies below the base or stands twice with two values is refused.
The build asks this of stage2.elf: how much room the stage takes while it runs, and where the two fields of the seal lie (stage2marke.h). Both stood as nm piped into python, and the python stays beside it and is compared on every run (R10-SELF-07).
selbsttest reads a module of this machine, counts its first symbol as a number and as a header, and sees a base above it and a missing name refused. It is what shell.a_symbol_is_counted_from_its_base drives.
EXAMPLE
$ symoff --help symoff <object> <base> <symbol> symoff <object> <base> --header <file> <MACRO>=<symbol>... symoff selbsttest how far a symbol lies above <base>, as a number or as a header