Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
fishypack-trident
Commits
650550b9
Commit
650550b9
authored
Mar 20, 2018
by
blackle
Browse files
Add special string so it gets picked up when u run `strings`
parent
f65ee471
Changes
3
Hide whitespace changes
Inline
Side-by-side
glx-xlib-tests/Makefile
View file @
650550b9
...
...
@@ -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
--i1000
0
-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
...
...
glx-xlib-tests/main.c
View file @
650550b9
...
...
@@ -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
...
...
packer/header.asm
View file @
650550b9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment