mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Add support for symbol table in .com files
This change fixes minor bugs and adds a feature, which lets us store the ELF symbol table, inside the ZIP directory. We use the path /zip/.symtab which can be safely removed using a zip editing tool, to make the binary smaller after compilation. This supplements the existing method of using a separate .com.dbg file, which is still supported. The intent is people don't always know that it's a good idea to download the debug file. It's not great having someone's first experience be a crash report, that only has numbers rather than symbols. This will help fix that!
This commit is contained in:
parent
393ca4be40
commit
23b72eb617
61 changed files with 963 additions and 510 deletions
|
@ -626,16 +626,16 @@ syscon clock CLOCK_TAI 11 -1 -1 -1 -1 -1 # bsd consensus
|
|||
# poll()
|
||||
#
|
||||
# group name GNU/Systemd XNU's Not UNIX! FreeBSD OpenBSD NetBSD The New Technology Commentary
|
||||
syscon poll POLLIN 1 1 1 1 1 0x300 # unix consensus
|
||||
syscon poll POLLIN 1 1 1 1 1 0x0300 # unix consensus; POLLRDNORM|POLLRDBAND on Windows
|
||||
syscon poll POLLPRI 2 2 2 2 2 0x0400 # unix consensus
|
||||
syscon poll POLLOUT 4 4 4 4 4 0x10 # unix consensus
|
||||
syscon poll POLLERR 8 8 8 8 8 1 # unix consensus
|
||||
syscon poll POLLHUP 0x10 0x10 0x10 0x10 0x10 2 # unix consensus
|
||||
syscon poll POLLNVAL 0x20 0x20 0x20 0x20 0x20 4 # unix consensus
|
||||
syscon poll POLLOUT 4 4 4 4 4 0x0010 # unix consensus; POLLWRNORM on Windows
|
||||
syscon poll POLLERR 8 8 8 8 8 0x0001 # unix consensus
|
||||
syscon poll POLLHUP 0x10 0x10 0x10 0x10 0x10 0x0002 # unix consensus
|
||||
syscon poll POLLNVAL 0x20 0x20 0x20 0x20 0x20 0x0004 # unix consensus
|
||||
syscon poll POLLRDBAND 0x80 0x80 0x80 0x80 0x80 0x0200 # unix consensus
|
||||
syscon poll POLLRDNORM 0x40 0x40 0x40 0x40 0x40 0x0100 # unix consensus
|
||||
syscon poll POLLWRBAND 0x0200 0x0100 0x0100 0x0100 0x0100 0x20 # bsd consensus
|
||||
syscon poll POLLWRNORM 0x0100 4 4 4 4 0x10 # bsd consensus
|
||||
syscon poll POLLWRBAND 0x0200 0x0100 0x0100 0x0100 0x0100 0x0020 # bsd consensus
|
||||
syscon poll POLLWRNORM 0x0100 4 4 4 4 0x0010 # bsd consensus
|
||||
syscon poll POLLRDHUP 0x2000 0x10 0x10 0x10 0x10 2 # bsd consensus (POLLHUP on non-Linux)
|
||||
|
||||
# epoll
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue