cosmopolitan/tool/build/lib
Justine Tunney 8ff48201ca
Rewrite .zip.o file linker
This change takes an entirely new approach to the incremental linking of
pkzip executables. The assets created by zipobj.com are now treated like
debug data. After a .com.dbg is compiled, fixupobj.com should be run, so
it can apply fixups to the offsets and move the zip directory to the end
of the file. Since debug data doesn't get objcopy'd, a new tool has been
introduced called zipcopy.com which should be run after objcopy whenever
a .com file is created. This is all automated by the `cosmocc` toolchain
which is rapidly becoming the new recommended approach.

This change also introduces the new C23 checked arithmetic macros.
2023-06-10 09:29:44 -07:00
..
abp.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
address.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
address.h Add The LISP Challenge 2020-10-01 01:20:13 -07:00
alu.c Clean up some code 2022-12-11 14:30:59 -08:00
alu.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
apetest.c Write tests for new APE loader and fix bugs 2022-05-22 05:45:38 -07:00
argv.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
argv.h Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
asmdown.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
asmdown.h Improve documentation 2020-12-27 07:02:35 -08:00
bcd.c Change license 2020-12-27 17:18:44 -08:00
bcd.h Make improvements 2020-09-14 00:02:34 -07:00
bits.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
bitscan.c Improve signal handling and math 2021-02-25 18:33:33 -08:00
bitscan.h Make improvements 2020-09-14 00:02:34 -07:00
breakpoint.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
breakpoint.h Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
breg.c Change license 2020-12-27 17:18:44 -08:00
buffer.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
buffer.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
buildlib.mk Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
case.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
cga.c Make important improvements 2022-09-14 22:39:08 -07:00
cga.h Make more improvements 2020-09-28 01:20:34 -07:00
clmul.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
clmul.h Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
cpuid.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
cpuid.h Make improvements 2020-09-14 00:02:34 -07:00
cvt.c Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
cvt.h Make improvements 2020-09-14 00:02:34 -07:00
debug.c Remove some includes 2022-08-18 17:46:34 -07:00
demangle.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
demangle.h Add fixes performance and static web server 2020-10-05 23:11:49 -07:00
dis.c Clean up some code 2022-12-11 14:30:59 -08:00
dis.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
disarg.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
diself.c Clean up some code 2022-12-11 14:30:59 -08:00
disinst.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
disspec.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
divmul.c Remove some includes 2022-08-18 17:46:34 -07:00
divmul.h Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
elfwriter.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
elfwriter.h Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
elfwriter_cargoculting.c Change license 2020-12-27 17:18:44 -08:00
elfwriter_yoink.c Get llama.com building as an aarch64 native binary 2023-05-10 04:20:47 -07:00
elfwriter_zip.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
endian.h Remove some includes 2022-08-18 17:46:34 -07:00
errnos.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
eztls.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
eztls.h Make improvements 2022-03-16 13:40:10 -07:00
fds.c Remove some includes 2022-08-18 17:46:34 -07:00
fds.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
flags.c Change license 2020-12-27 17:18:44 -08:00
flags.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
fpu.c Remove some includes 2022-08-18 17:46:34 -07:00
fpu.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
getargs.c Remove some includes 2022-08-18 17:46:34 -07:00
getargs.h Improve memory safety 2021-10-13 17:27:13 -07:00
high.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
high.h Make more improvements 2020-09-28 01:20:34 -07:00
instruction.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
interner.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
interner.h Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
ioports.c Remove some includes 2022-08-18 17:46:34 -07:00
ioports.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
iovs.c Remove some includes 2022-08-18 17:46:34 -07:00
iovs.h Remove some includes 2022-08-18 17:46:34 -07:00
javadown.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
javadown.h finish intellisense support and sync with upstream 2021-02-03 13:50:08 -05:00
ldbl.c Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
ldbl.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
lines.c Fix some build errors 2023-06-05 15:53:44 -07:00
lines.h Add help dialog to Blinkenlights emulator 2021-02-19 17:16:17 -08:00
loader.c Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
loader.h Make improvements 2020-09-14 00:02:34 -07:00
machine.c Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
machine.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
mda.c Make important improvements 2022-09-14 22:39:08 -07:00
mda.h Make improvements 2020-09-14 00:02:34 -07:00
memory.c Remove some includes 2022-08-18 17:46:34 -07:00
memory.h Refactor some Blinkenlights code 2021-03-03 13:09:06 -08:00
memorymalloc.c Add more missing C / C++ headers 2022-09-04 04:53:52 -07:00
message.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
modrm.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
modrm.h Perform some code cleanup 2021-02-27 10:33:32 -08:00
op101.c Improve logger API (#262) 2021-09-03 21:14:26 -07:00
op101.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
panel.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
panel.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
pml4t.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
pml4t.h Fix missing header include 2020-11-07 00:05:25 -08:00
pml4tfmt.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
psk.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
psk.h Secure the testing infrastructure 2021-08-07 13:22:35 -07:00
pty.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
pty.h Import C++ Standard Template Library 2022-03-22 06:41:54 -07:00
pun.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
reset.c Make numerous improvements 2021-09-28 01:52:34 -07:00
signal.c Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
signal.h Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
sse.c Remove some includes 2022-08-18 17:46:34 -07:00
sse.h Make more improvements 2020-09-28 01:20:34 -07:00
ssefloat.c Remove some includes 2022-08-18 17:46:34 -07:00
ssefloat.h Add chibicc 2020-12-06 16:20:21 -08:00
ssemov.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
ssemov.h Make improvements 2020-09-14 00:02:34 -07:00
stack.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
stack.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
stats.c Change license 2020-12-27 17:18:44 -08:00
stats.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
string.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
string.h Make improvements 2020-09-14 00:02:34 -07:00
stripcomponents.c Experiment with making Python go faster 2021-08-18 21:57:11 -07:00
stripcomponents.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
syscall.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
syscall.h Make improvements 2020-09-14 00:02:34 -07:00
throw.c Update tests and CPU detection for Blink 2023-01-18 00:56:09 -08:00
throw.h Add chibicc 2020-12-06 16:20:21 -08:00
time.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
time.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
word.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
word.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
xlat.c Fix pthread stacks with larger guard size 2022-09-09 06:41:22 -07:00
xlat.h Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
xlaterrno.c Perform some code cleanup 2023-05-15 16:32:10 -07:00
xmmtype.c Change license 2020-12-27 17:18:44 -08:00
xmmtype.h Add tool for viewing memory 2020-11-06 20:20:10 -08:00