From 14c3183fbdfc686e41426d8bca11ac768c664d8a Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Sun, 10 Jan 2021 21:12:29 +0900 Subject: [PATCH] shrink code size of "v" --- planck.xxd | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/planck.xxd b/planck.xxd index 94c4b99..963ab4c 100644 --- a/planck.xxd +++ b/planck.xxd @@ -6,10 +6,10 @@ 00000028: 3400 2000 0100 0000 e_ehsize,e_phentsize,e_phnum,e_shentsize 00000030: 0000 0000 0100 0000 e_shnum,e_shstrndx,p_type=PT_LOAD 00000038: 0000 0000 0080 0408 p_offset,p_vaddr=0x08048000 -00000040: 0000 0000 f403 0000 p_paddr,p_filesz +00000040: 0000 0000 f003 0000 p_paddr,p_filesz 00000048: 0000 2000 0700 0000 p_memsz(128KB),p_flags=PF_X|PF_W|PF_R -00000050: 0010 0000 f483 0408 p_align, -00000058: c883 0408 0000 0000 , +00000050: 0010 0000 f083 0408 p_align, +00000058: c483 0408 0000 0000 , 00000060: e480 0408 5c81 0408 key, find 00000068: 8881 0408 3081 0408 execute, jump 00000070: f0ff ffff be60 8004 -16, movl $interpreter, %esi @@ -165,12 +165,12 @@ 000003a8: 9483 0408 0176 0000 v: argv 000003b0: b483 0408 8b05 5c80 movl sp0,%eax; -000003b8: 0408 89c3 83c3 0453 movl %eax,%ebx; addl $4,%ebx; pushl %ebx -000003c0: ff30 adff 2000 0000 pushl (%eax); next; +000003b8: 0408 8d58 0453 ff30 leal 4(%eax),%ebx; pushl %ebx; pushl (%eax); +000003c0: adff 2000 0000 0000 next; -000003c8: a883 0408 0156 0000 V: version -000003d0: d483 0408 68dc 8304 pushl $version -000003d8: 08ad ff20 6861 6e64 next; hand -000003e0: 2d77 7269 7474 656e -written -000003e8: 2069 3338 362d 6c69 i386-li -000003f0: 6e75 7800 nux +000003c4: a883 0408 0156 0000 V: version +000003cc: d083 0408 68d8 8304 pushl $version +000003d4: 08ad ff20 6861 6e64 next; hand +000003dc: 2d77 7269 7474 656e -written +000003e4: 2069 3338 362d 6c69 i386-li +000003ec: 6e75 7800