MP_01 objdump fix

This commit is contained in:
Johannes Theiner 2018-03-13 22:23:02 +01:00
parent 41eec10083
commit 9f9705eb26
4 changed files with 34 additions and 33 deletions

Binary file not shown.

View File

@ -42,6 +42,8 @@ int main(int argc, char **argv) {
} }
printf("Nullstellen: %d\n", zeroes); printf("Nullstellen: %d\n", zeroes);
int test = 5;
recurse1(20); recurse1(20);
printf("\n"); printf("\n");
recurse2(20); recurse2(20);

Binary file not shown.

View File

@ -216,7 +216,7 @@ Disassembly of section .text:
4006af: 90 nop 4006af: 90 nop
4006b0: 55 push %rbp 4006b0: 55 push %rbp
4006b1: 48 89 e5 mov %rsp,%rbp 4006b1: 48 89 e5 mov %rsp,%rbp
4006b4: 48 83 ec 50 sub $0x50,%rsp 4006b4: 48 83 ec 60 sub $0x60,%rsp
4006b8: 48 b8 3c 09 40 00 00 movabs $0x40093c,%rax 4006b8: 48 b8 3c 09 40 00 00 movabs $0x40093c,%rax
4006bf: 00 00 00 4006bf: 00 00 00
4006c2: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp) 4006c2: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
@ -229,7 +229,7 @@ Disassembly of section .text:
4006e4: b0 00 mov $0x0,%al 4006e4: b0 00 mov $0x0,%al
4006e6: e8 45 fd ff ff callq 400430 <printf@plt> 4006e6: e8 45 fd ff ff callq 400430 <printf@plt>
4006eb: bf 02 00 00 00 mov $0x2,%edi 4006eb: bf 02 00 00 00 mov $0x2,%edi
4006f0: 89 45 d4 mov %eax,-0x2c(%rbp) 4006f0: 89 45 d0 mov %eax,-0x30(%rbp)
4006f3: e8 38 fe ff ff callq 400530 <pow@plt+0xf0> 4006f3: e8 38 fe ff ff callq 400530 <pow@plt+0xf0>
4006f8: 48 bf 5e 09 40 00 00 movabs $0x40095e,%rdi 4006f8: 48 bf 5e 09 40 00 00 movabs $0x40095e,%rdi
4006ff: 00 00 00 4006ff: 00 00 00
@ -237,7 +237,7 @@ Disassembly of section .text:
400704: b0 00 mov $0x0,%al 400704: b0 00 mov $0x0,%al
400706: e8 25 fd ff ff callq 400430 <printf@plt> 400706: e8 25 fd ff ff callq 400430 <printf@plt>
40070b: bf 02 00 00 00 mov $0x2,%edi 40070b: bf 02 00 00 00 mov $0x2,%edi
400710: 89 45 d0 mov %eax,-0x30(%rbp) 400710: 89 45 cc mov %eax,-0x34(%rbp)
400713: e8 48 fe ff ff callq 400560 <pow@plt+0x120> 400713: e8 48 fe ff ff callq 400560 <pow@plt+0x120>
400718: 48 bf 6e 09 40 00 00 movabs $0x40096e,%rdi 400718: 48 bf 6e 09 40 00 00 movabs $0x40096e,%rdi
40071f: 00 00 00 40071f: 00 00 00
@ -246,7 +246,7 @@ Disassembly of section .text:
400726: e8 05 fd ff ff callq 400430 <printf@plt> 400726: e8 05 fd ff ff callq 400430 <printf@plt>
40072b: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp) 40072b: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp)
400732: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%rbp) 400732: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%rbp)
400739: 89 45 cc mov %eax,-0x34(%rbp) 400739: 89 45 c8 mov %eax,-0x38(%rbp)
40073c: 83 7d e4 05 cmpl $0x5,-0x1c(%rbp) 40073c: 83 7d e4 05 cmpl $0x5,-0x1c(%rbp)
400740: 0f 8f 1c 00 00 00 jg 400762 <pow@plt+0x322> 400740: 0f 8f 1c 00 00 00 jg 400762 <pow@plt+0x322>
400746: 8b 7d e4 mov -0x1c(%rbp),%edi 400746: 8b 7d e4 mov -0x1c(%rbp),%edi
@ -264,7 +264,7 @@ Disassembly of section .text:
400771: e8 ba fc ff ff callq 400430 <printf@plt> 400771: e8 ba fc ff ff callq 400430 <printf@plt>
400776: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp) 400776: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp)
40077d: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%rbp) 40077d: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%rbp)
400784: 89 45 c8 mov %eax,-0x38(%rbp) 400784: 89 45 c4 mov %eax,-0x3c(%rbp)
400787: 83 7d e0 05 cmpl $0x5,-0x20(%rbp) 400787: 83 7d e0 05 cmpl $0x5,-0x20(%rbp)
40078b: 0f 8f 1c 00 00 00 jg 4007ad <pow@plt+0x36d> 40078b: 0f 8f 1c 00 00 00 jg 4007ad <pow@plt+0x36d>
400791: 8b 7d e0 mov -0x20(%rbp),%edi 400791: 8b 7d e0 mov -0x20(%rbp),%edi
@ -283,7 +283,7 @@ Disassembly of section .text:
4007c1: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp) 4007c1: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%rbp)
4007c8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%rbp) 4007c8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%rbp)
4007cf: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%rbp) 4007cf: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%rbp)
4007d6: 89 45 c4 mov %eax,-0x3c(%rbp) 4007d6: 89 45 c0 mov %eax,-0x40(%rbp)
4007d9: 83 7d d8 14 cmpl $0x14,-0x28(%rbp) 4007d9: 83 7d d8 14 cmpl $0x14,-0x28(%rbp)
4007dd: 0f 8f 2d 00 00 00 jg 400810 <pow@plt+0x3d0> 4007dd: 0f 8f 2d 00 00 00 jg 400810 <pow@plt+0x3d0>
4007e3: 8b 7d d8 mov -0x28(%rbp),%edi 4007e3: 8b 7d d8 mov -0x28(%rbp),%edi
@ -304,33 +304,32 @@ Disassembly of section .text:
40081d: b0 00 mov $0x0,%al 40081d: b0 00 mov $0x0,%al
40081f: e8 0c fc ff ff callq 400430 <printf@plt> 40081f: e8 0c fc ff ff callq 400430 <printf@plt>
400824: bf 14 00 00 00 mov $0x14,%edi 400824: bf 14 00 00 00 mov $0x14,%edi
400829: 89 45 c0 mov %eax,-0x40(%rbp) 400829: c7 45 d4 05 00 00 00 movl $0x5,-0x2c(%rbp)
40082c: e8 bf fd ff ff callq 4005f0 <pow@plt+0x1b0> 400830: 89 45 bc mov %eax,-0x44(%rbp)
400831: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi 400833: e8 b8 fd ff ff callq 4005f0 <pow@plt+0x1b0>
400838: 00 00 00 400838: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi
40083b: 89 45 bc mov %eax,-0x44(%rbp) 40083f: 00 00 00
40083e: b0 00 mov $0x0,%al 400842: 89 45 b8 mov %eax,-0x48(%rbp)
400840: e8 eb fb ff ff callq 400430 <printf@plt> 400845: b0 00 mov $0x0,%al
400845: bf 14 00 00 00 mov $0x14,%edi 400847: e8 e4 fb ff ff callq 400430 <printf@plt>
40084a: 89 45 b8 mov %eax,-0x48(%rbp) 40084c: bf 14 00 00 00 mov $0x14,%edi
40084d: e8 ee fd ff ff callq 400640 <pow@plt+0x200> 400851: 89 45 b4 mov %eax,-0x4c(%rbp)
400852: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi 400854: e8 e7 fd ff ff callq 400640 <pow@plt+0x200>
400859: 00 00 00 400859: 48 bf 6c 09 40 00 00 movabs $0x40096c,%rdi
40085c: 89 45 b4 mov %eax,-0x4c(%rbp) 400860: 00 00 00
40085f: b0 00 mov $0x0,%al 400863: 89 45 b0 mov %eax,-0x50(%rbp)
400861: e8 ca fb ff ff callq 400430 <printf@plt> 400866: b0 00 mov $0x0,%al
400866: 8b 3c 25 38 10 60 00 mov 0x601038,%edi 400868: e8 c3 fb ff ff callq 400430 <printf@plt>
40086d: 8b 75 ec mov -0x14(%rbp),%esi 40086d: 8b 3c 25 38 10 60 00 mov 0x601038,%edi
400870: 89 45 b0 mov %eax,-0x50(%rbp) 400874: 8b 75 ec mov -0x14(%rbp),%esi
400873: e8 18 fe ff ff callq 400690 <pow@plt+0x250> 400877: 89 45 ac mov %eax,-0x54(%rbp)
400878: 89 45 ec mov %eax,-0x14(%rbp) 40087a: e8 11 fe ff ff callq 400690 <pow@plt+0x250>
40087b: 8b 45 ec mov -0x14(%rbp),%eax 40087f: 89 45 ec mov %eax,-0x14(%rbp)
40087e: 48 83 c4 50 add $0x50,%rsp 400882: 8b 45 ec mov -0x14(%rbp),%eax
400882: 5d pop %rbp 400885: 48 83 c4 60 add $0x60,%rsp
400883: c3 retq 400889: 5d pop %rbp
400884: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 40088a: c3 retq
40088b: 00 00 00 40088b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
40088e: 66 90 xchg %ax,%ax
400890: 41 57 push %r15 400890: 41 57 push %r15
400892: 41 56 push %r14 400892: 41 56 push %r14
400894: 41 89 ff mov %edi,%r15d 400894: 41 89 ff mov %edi,%r15d