This is what you get by linking with crt code (=using gcc) ELF.
All this is of course highly dependent on which version you run.
i80emgcc: file format elf32-i386
Disassembly of section .init:
08048300 call 0804843c
08048305 ret $0x0
Disassembly of section .plt:
08048308 pushl 0x8049480
0804830e jmp *0x8049484
...
08048318 jmp *0x8049488
0804831e pushl $0x0
08048323 jmp 08048308
08048328 jmp *0x804948c
0804832e pushl $0x8
08048333 jmp 08048308
08048338 jmp *0x8049490
0804833e pushl $0x10
08048343 jmp 08048308
08048348 jmp *0x8049494
0804834e pushl $0x18
08048353 jmp 08048308
Disassembly of section .text:
08048360 popl %ecx
08048361 movl %esp,%ebx
08048363 movl %esp,%eax
08048365 movl %ecx,%edx
08048367 addl %edx,%edx
08048369 addl %edx,%edx
0804836b addl %edx,%eax
0804836d addl $0x4,%eax
08048370 xorl %ebp,%ebp
08048372 pushl %ebp
08048373 pushl %ebp
08048374 pushl %ebp
08048375 movl %esp,%ebp
08048377 pushl %eax
08048378 pushl %ebx
08048379 pushl %ecx
0804837a movl $0x88,%eax
0804837f movl $0x0,%ebx
08048384 int $0x80
08048386 movl 0x8(%esp,1),%eax
0804838a movl %eax,0x8049468
0804838f movzwl 0x8049520,%eax
08048396 pushl %eax
08048397 call 08048348
0804839c addl $0x4,%esp
0804839f call 08048318
080483a4 pushl $0x8048460
080483a9 call 08048328
080483ae addl $0x4,%esp
080483b1 call 08048300
080483b6 call 08048410
080483bb pushl %eax
080483bc call 08048338
080483c1 popl %ebx
080483c2 leal 0x0(%esi,1),%esi
080483c9 leal 0x0(%esi,1),%esi
080483d0 movl $0x1,%eax
080483d5 int $0x80
080483d7 jmp 080483d0
080483d9 leal 0x0(%esi,1),%esi
080483e0 pushl %ebx
080483e1 movl $0x8049478,%ebx
080483e6 cmpl $0x0,0x8049478
080483ed je 080483fc
080483ef nop
080483f0 movl (%ebx),%eax
080483f2 call *%eax
080483f4 addl $0x4,%ebx
080483f7 cmpl $0x0,(%ebx)
080483fa jne 080483f0
__do_global_dtors_aux+10>
080483fc popl %ebx
080483fd ret
080483fe leal (%esi),%esi
08048400 ret
08048401 nop
08048402 nop
08048403 nop
08048404 nop
08048405 nop
08048406 nop
08048407 nop
08048408 nop
08048409 nop
0804840a nop
0804840b nop
0804840c nop
0804840d nop
0804840e nop
0804840f nop
08048410 movl $0x7,%edx
08048415 movl $0x8048433,%ecx
0804841a movl $0x0,%ebx
0804841f movl $0x4,%eax
08048424 int $0x80
08048426 movl $0x0,%ebx
0804842b movl $0x1,%eax
08048430 int $0x80
08048432 ret
08048433 decl %eax
08048434 insb (%dx),%es:(%edi)
08048436 insb (%dx),%es:(%edi)
08048437 outsl %ds:(%esi),(%dx)
08048438 andl %ecx,(%edx)
0804843a nop
0804843b nop
0804843c pushl %ebx
0804843d movl $0x804946c,%ebx
08048442 cmpl $0xffffffff,0x804946c
08048449 je 08048458
0804844b nop
0804844c movl (%ebx),%eax
0804844e call *%eax
08048450 addl $0xfffffffc,%ebx
08048453 cmpl $0xffffffff,(%ebx)
08048456 jne 0804844c
__do_global_ctors_aux+10>
08048458 popl %ebx
08048459 ret
0804845a leal (%esi),%esi
0804845c ret
0804845d nop
0804845e nop
0804845f nop
Disassembly of section .fini:
08048460 call 080483e0
08048465 ret $0x0
Bye , Pieter
--- GoldED 2.41+
---------------
* Origin: __Pigs On The Wing__ Leiden, NL. (pjs@xs4all.nl) (2:281/214.7)
|