Skip to content

Commit 9f987b4

Browse files
Merge pull request #25 from byeongkeunahn/short-4
Shorten the generated code in short mode
2 parents 97e6786 + 248313d commit 9f987b4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/static-pie-prestub-amd64-shorter.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ _decode_output:
5656
jnz _decode_output
5757
jmp _decode_loop
5858
_decode_zeros:
59-
movzx ecx, byte [rdi-1]
6059
dec rdi
60+
movzx ecx, byte [rdi]
6161
rep stosb ; the fact we jumped to here ensures al=0
6262
jmp _decode_loop_2
6363

scripts/static-pie-prestub-amd64-shorter.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
j X�E1�V1�j^�j"AZj�AX^H�����,#�r#t�Ȓ�,$k�[Ъ����u����O�H�����H+���
1+
j X�E1�V1�j^�j"AZj�AX^H�����,#�r"t�Ȓ�,$k�[Ъ����u���H������H+���

scripts/static-pie-template-amd64-shorter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
$$$$solution_src$$$$
66
}
77
// SOLUTION END
8-
#[no_link]extern crate std;#[no_mangle]unsafe fn _start(){std::arch::asm!(".quad 56c931459958096ah,6a07b25e016aff31h,0f5841ff6a5a4122h,0e0c11fb097485e05h,74237299232cac0dh,6b242cac92c8fe16h,8e8c1aad0015bc0h,0fdfebf77510c4f6h,0aaf3cfff48ff4fb6h,0d7fff87f2b48d7ebh",in("rsi")r$$$$binary_raw_base91$$$$.as_ptr())}
8+
#[no_link]extern crate std;#[no_mangle]unsafe fn _start(){std::arch::asm!(".octa 6a07b25e016aff3156c931459958096ah,0e0c11fb097485e050f5841ff6a5a4122h,6b242cac92c8fe1674227299232cac0dh,48dfebf77510c4f608e8c1aad0015bc0h,0d7fff87f2b48d8ebaaf30fb60fcfffh",in("rsi")r$$$$binary_raw_base91$$$$.as_ptr())}

0 commit comments

Comments
 (0)