Posts

Showing posts with the label assebme

Right to disassemble.

In the last article, I talked about looking at programs and disassembling them. What is that really all about. Let us take the very simple program hw and run it. $ ./hw Hello world! $ The program hw printed out the famous Hello world. We can understand that, but let's look at what the computer sees to do that program. $ cat hw � �̀Hello world! ( ���� ����� .shstrtab.text.data � eddie@oedt01:~$ ��" ��� Obviously garbage. At this point we can not really use that output for our needs. Remember I talked about a disassembler?  It changed that gobbletygoop in to something that a programmer might use.  Let's try it. $ objdump -D hw hw:     file format elf32-i386 Disassembly of section .text: 08048080 <.text>:  8048080:    b8 04 00 00 00           mov    $0x4,%eax  8048085:    bb 01 00 00 00       ...