untitled paste

unlisted ⁨1⁩ ⁨file⁩ 2021-12-22 14:16:54 UTC

assert.diff

Raw
diff --git a/m1n1-raw.ld b/m1n1-raw.ld
index 61c51df..463a361 100644
--- a/m1n1-raw.ld
+++ b/m1n1-raw.ld
@@ -146,3 +146,5 @@ SECTIONS {
 PROT_READ = 0x01;
 PROT_WRITE = 0x02;
 PROT_EXECUTE = 0x04;
+
+ASSERT(_base + 2048 == _start, "_start must be first!")