cosmopolitan/ape
tkchia 8569704c1d
Stop APE bare metal loader from reading beyond program image end (#574)
This allows e.g. `qemu-system-x86_64 -s o/examples/hello.com
-serial stdio` to work without having to add extra padding to
the end of the `hello.com` "disk image".

(The sector count computation is divided among two instructions
in the assembly code.  This is done on purpose, to prevent an
ASCII 0x27 (single quote) byte from appearing in the bare
metal loader code, which will break the shell script loader.
There is probably a better way.)

Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
2022-09-04 00:19:08 -07:00
..
ape.lds Stop APE bare metal loader from reading beyond program image end (#574) 2022-09-04 00:19:08 -07:00
ape.mk Reduce build graph by another 14 percent 2022-08-17 20:01:21 -07:00
ape.S Stop APE bare metal loader from reading beyond program image end (#574) 2022-09-04 00:19:08 -07:00
apeinstall.sh Add pledge.com for launching commands in a sandbox 2022-07-13 04:31:46 -07:00
apeuninstall.sh Fix some regressions with execution 2022-08-07 22:10:18 -07:00
config.h Improve memory safety 2021-10-13 17:27:13 -07:00
idata.internal.h Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
loader-elf.S Work around Rosetta clobbering startup registers on M1 Macs (issue #429) (#453) 2022-06-27 16:28:59 -07:00
loader-macho.lds Write tests for new APE loader and fix bugs 2022-05-22 05:45:38 -07:00
loader-macho.S Work around Rosetta clobbering startup registers on M1 Macs (issue #429) (#453) 2022-06-27 16:28:59 -07:00
loader.c Clean up some code 2022-08-20 12:32:51 -07:00
loader.h Write tests for new APE loader and fix bugs 2022-05-22 05:45:38 -07:00
loader.lds Add .PLEDGE/.CPU/.MEMORY/etc. to Landlock Make 1.2 2022-08-14 20:16:44 -07:00
macros.internal.h Correct more typos (#500) 2022-07-21 20:53:30 -07:00
mz.ansi Initial import 2020-06-15 07:18:57 -07:00
notice.inc Initial import 2020-06-15 07:18:57 -07:00
relocations.h Support malloc() on bare metal 2021-02-24 00:53:24 -08:00