Commit 650550b9 authored by blackle's avatar blackle
Browse files

Add special string so it gets picked up when u run `strings`

parent f65ee471
......@@ -49,7 +49,7 @@ main : main.c shader.h Makefile
main_packed : main ../packer/header Makefile
gzip --no-name -9 -c main | wc -c
zopfli --gzip --i10000 -c main > main.gz
zopfli --gzip --i1000 -c main > main.gz
wc -c main.gz
cat ../packer/header main.gz > main_packed
chmod +x main_packed
......
......@@ -247,7 +247,7 @@ void _start() {
for (int x = 0; x < 9; x++) {
glUniform1f(0, x);
glRecti(-1,-1,1,1);
glFinish();
// glFinish();
}
//blit our framebuffer to the screen
......
......@@ -50,15 +50,10 @@ e_phoff:
e_shoff:
e_flags:
__gzip:
e_ehsize:
;e_shoff and e_flags are 12 bytes and can be nonsense
db '/bin/zcat',0,
nop
nop
db 'blackle mori!',0
e_ehsize:
nop
nop
e_phentsize:
dw phdrsize
......@@ -194,6 +189,10 @@ _child:
; ========= STRINGS =========
; ===========================
__gzip:
;e_shoff and e_flags are 12 bytes and can be nonsense
db '/bin/zcat',0,
;replacing the "fd/3" with "exe\0" on the fly saves... 4 bytes
;its actually good we did this because the __memfd load into register
;can be done before fork so that both processes get it
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment