From 447e8e2796d0361aed780ec9a391fde37f4e8422 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 2 Sep 2021 12:12:55 -0400 Subject: in theory all that's left for program 02 is filling in jumps --- 01/README.md | 2 +- 01/in00 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '01') diff --git a/01/README.md b/01/README.md index 859996f..1fc5f8c 100644 --- a/01/README.md +++ b/01/README.md @@ -41,7 +41,7 @@ So, for example, the `sy` command outputs a syscall instruction. You can see `||` is a very important command. It outputs an ELF header for our executable. Rather than compute the correct size of the file, it just sets the "file size" -and "memory size" members of the program header to `0x40000` (enough for a 256KB +and "memory size" members of the program header to `0x80000` (enough for a 512KB executable). As it turns out, Linux won't mind if the program header lies about how much data is in the file. diff --git a/01/in00 b/01/in00 index 6b99357..2d5488a 100644 --- a/01/in00 +++ b/01/in00 @@ -16289,6 +16289,6 @@ cc cc cc cc cc cc cc cc 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 -00 00 03 00 00 00 00 00 -00 00 03 00 00 00 00 00 +00 00 08 00 00 00 00 00 +00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 -- cgit v1.2.3