All pastes #737191 Raw Edit

Something

public text v1 · immutable
·published 2007-10-15 06:08 UTC
rendered paste body
[bodo@bakawali testbed7]$ as testshell.s -o testshell.o
[bodo@bakawali testbed7]$ ld testshell.o -o testshell
[bodo@bakawali testbed7]$ objdump -d testshell

testshell:     file format elf32-i386
Disassembly of section .text:

08048074 <_start-0x2>:

 8048074:       eb 12             jmp    8048088 <dummy>

 

08048076 <_start>:
 8048076:       5b                pop    %ebx
 8048077:       31 c0             xor    %eax, %eax
 8048079:       89 43 01          mov    %eax, 0x1(%ebx)
 804807c:       b8 01 00 00 00    mov    $0x1, %eax
 8048081:       bb 00 00 00 00    mov    $0x0, %ebx
 8048086:       cd 80             int    $0x80 

08048088 <dummy>:

 8048088:       e8 e9 ff ff ff    call   8048076 <_start>
 804808d:       58                pop    %eax
        ...