ack/plat
George Koehler 98f2273d97 Teach cvmach to emit the symbol table.
This preserves the name and value of every symbol.  The type and other
info of a symbol might be lost.  In gdb, one can now "disas main" or
"disas '.ret'" to disassemble functions by name.

Most symbols are in sections, so I also teach cvmach to emit the Mach
section headers.  The entry point in plat/osx*/descr moves down to
make room for the section headers and LC_SYMTAB.

I fix some bugs in calculations of cvmach.  They were wrong if ROM had
a greater alignment than TEXT, or if DATA did not start on a page
boundary.  I introduce machseg[] to simplify the mess of variables in
main().  I declare most functions as static.  Also, cvmach becomes the
first program to #include <object.h>.
2016-11-22 17:16:30 -05:00
..
cpm Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
linux/libsys Implement isatty() for Linux. 2016-09-20 21:28:37 -04:00
linux68k Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
linux386 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
linuxppc Remove .linenumber and .filename; use hol0 and hol0+4. 2016-09-30 13:40:36 -04:00
osx Teach cvmach to emit the symbol table. 2016-11-22 17:16:30 -05:00
osx386 Teach cvmach to emit the symbol table. 2016-11-22 17:16:30 -05:00
osxppc Teach cvmach to emit the symbol table. 2016-11-22 17:16:30 -05:00
pc86 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
rpi Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
build.lua ego now builds and is used. 2016-08-21 22:01:19 +02:00