Last active
September 18, 2015 21:47
-
-
Save cirosantilli/7b03f6df2d404c0862c6 to your computer and use it in GitHub Desktop.
NASM hello world hexdump http://stackoverflow.com/questions/26294034/how-to-make-an-executable-in-linux-using-a-hex-editor/30648229#30648229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00000000 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 |.ELF............| | |
00000010 02 00 3e 00 01 00 00 00 b0 00 40 00 00 00 00 00 |..>.......@.....| | |
00000020 40 00 00 00 00 00 00 00 10 01 00 00 00 00 00 00 |@...............| | |
00000030 00 00 00 00 40 00 38 00 02 00 40 00 06 00 03 00 |....@.8...@.....| | |
00000040 01 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000050 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 |..@.......@.....| | |
00000060 d7 00 00 00 00 00 00 00 d7 00 00 00 00 00 00 00 |................| | |
00000070 00 00 20 00 00 00 00 00 01 00 00 00 06 00 00 00 |.. .............| | |
00000080 d8 00 00 00 00 00 00 00 d8 00 60 00 00 00 00 00 |..........`.....| | |
00000090 d8 00 60 00 00 00 00 00 0d 00 00 00 00 00 00 00 |..`.............| | |
000000a0 0d 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 |.......... .....| | |
000000b0 b8 01 00 00 00 bf 01 00 00 00 48 be d8 00 60 00 |..........H...`.| | |
000000c0 00 00 00 00 ba 0d 00 00 00 0f 05 b8 3c 00 00 00 |............<...| | |
000000d0 bf 00 00 00 00 0f 05 00 48 65 6c 6c 6f 20 77 6f |........Hello wo| | |
000000e0 72 6c 64 21 0a 00 2e 73 79 6d 74 61 62 00 2e 73 |rld!...symtab..s| | |
000000f0 74 72 74 61 62 00 2e 73 68 73 74 72 74 61 62 00 |trtab..shstrtab.| | |
00000100 2e 74 65 78 74 00 2e 64 61 74 61 00 00 00 00 00 |.text..data.....| | |
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
* | |
00000150 1b 00 00 00 01 00 00 00 06 00 00 00 00 00 00 00 |................| | |
00000160 b0 00 40 00 00 00 00 00 b0 00 00 00 00 00 00 00 |..@.............| | |
00000170 27 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |'...............| | |
00000180 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000190 21 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 |!...............| | |
000001a0 d8 00 60 00 00 00 00 00 d8 00 00 00 00 00 00 00 |..`.............| | |
000001b0 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000001c0 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000001d0 11 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000001e0 00 00 00 00 00 00 00 00 e5 00 00 00 00 00 00 00 |................| | |
000001f0 27 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |'...............| | |
00000200 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000210 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000220 00 00 00 00 00 00 00 00 90 02 00 00 00 00 00 00 |................| | |
00000230 08 01 00 00 00 00 00 00 05 00 00 00 07 00 00 00 |................| | |
00000240 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 |................| | |
00000250 09 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000260 00 00 00 00 00 00 00 00 98 03 00 00 00 00 00 00 |................| | |
00000270 4c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |L...............| | |
00000280 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000002a0 00 00 00 00 00 00 00 00 00 00 00 00 03 00 01 00 |................| | |
000002b0 b0 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 |..@.............| | |
000002c0 00 00 00 00 03 00 02 00 d8 00 60 00 00 00 00 00 |..........`.....| | |
000002d0 00 00 00 00 00 00 00 00 01 00 00 00 04 00 f1 ff |................| | |
000002e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000002f0 11 00 00 00 00 00 02 00 d8 00 60 00 00 00 00 00 |..........`.....| | |
00000300 00 00 00 00 00 00 00 00 1d 00 00 00 00 00 f1 ff |................| | |
00000310 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000320 00 00 00 00 04 00 f1 ff 00 00 00 00 00 00 00 00 |................| | |
00000330 00 00 00 00 00 00 00 00 2d 00 00 00 10 00 01 00 |........-.......| | |
00000340 b0 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 |..@.............| | |
00000350 34 00 00 00 10 00 02 00 e5 00 60 00 00 00 00 00 |4.........`.....| | |
00000360 00 00 00 00 00 00 00 00 40 00 00 00 10 00 02 00 |........@.......| | |
00000370 e5 00 60 00 00 00 00 00 00 00 00 00 00 00 00 00 |..`.............| | |
00000380 47 00 00 00 10 00 02 00 e8 00 60 00 00 00 00 00 |G.........`.....| | |
00000390 00 00 00 00 00 00 00 00 00 68 65 6c 6c 6f 5f 77 |.........hello_w| | |
000003a0 6f 72 6c 64 2e 61 73 6d 00 68 65 6c 6c 6f 5f 77 |orld.asm.hello_w| | |
000003b0 6f 72 6c 64 00 68 65 6c 6c 6f 5f 77 6f 72 6c 64 |orld.hello_world| | |
000003c0 5f 6c 65 6e 00 5f 73 74 61 72 74 00 5f 5f 62 73 |_len._start.__bs| | |
000003d0 73 5f 73 74 61 72 74 00 5f 65 64 61 74 61 00 5f |s_start._edata._| | |
000003e0 65 6e 64 00 |end.| | |
000003e4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00000000 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 |.ELF............| | |
00000010 01 00 3e 00 01 00 00 00 00 00 00 00 00 00 00 00 |..>.............| | |
00000020 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 |........@.......| | |
00000030 00 00 00 00 40 00 00 00 00 00 40 00 07 00 03 00 |....@.....@.....| | |
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
* | |
00000080 01 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 |................| | |
00000090 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 |................| | |
000000a0 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000b0 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000c0 07 00 00 00 01 00 00 00 06 00 00 00 00 00 00 00 |................| | |
000000d0 00 00 00 00 00 00 00 00 10 02 00 00 00 00 00 00 |................| | |
000000e0 27 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |'...............| | |
000000f0 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000100 0d 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000110 00 00 00 00 00 00 00 00 40 02 00 00 00 00 00 00 |........@.......| | |
00000120 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |2...............| | |
00000130 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000140 17 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000150 00 00 00 00 00 00 00 00 80 02 00 00 00 00 00 00 |................| | |
00000160 a8 00 00 00 00 00 00 00 05 00 00 00 06 00 00 00 |................| | |
00000170 04 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 |................| | |
00000180 1f 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000190 00 00 00 00 00 00 00 00 30 03 00 00 00 00 00 00 |........0.......| | |
000001a0 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |4...............| | |
000001b0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000001c0 27 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 |'...............| | |
000001d0 00 00 00 00 00 00 00 00 70 03 00 00 00 00 00 00 |........p.......| | |
000001e0 18 00 00 00 00 00 00 00 04 00 00 00 02 00 00 00 |................| | |
000001f0 04 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 |................| | |
00000200 48 65 6c 6c 6f 20 77 6f 72 6c 64 21 0a 00 00 00 |Hello world!....| | |
00000210 b8 01 00 00 00 bf 01 00 00 00 48 be 00 00 00 00 |..........H.....| | |
00000220 00 00 00 00 ba 0d 00 00 00 0f 05 b8 3c 00 00 00 |............<...| | |
00000230 bf 00 00 00 00 0f 05 00 00 00 00 00 00 00 00 00 |................| | |
00000240 00 2e 64 61 74 61 00 2e 74 65 78 74 00 2e 73 68 |..data..text..sh| | |
00000250 73 74 72 74 61 62 00 2e 73 79 6d 74 61 62 00 2e |strtab..symtab..| | |
00000260 73 74 72 74 61 62 00 2e 72 65 6c 61 2e 74 65 78 |strtab..rela.tex| | |
00000270 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |t...............| | |
00000280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000290 00 00 00 00 00 00 00 00 01 00 00 00 04 00 f1 ff |................| | |
000002a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000002b0 00 00 00 00 03 00 01 00 00 00 00 00 00 00 00 00 |................| | |
000002c0 00 00 00 00 00 00 00 00 00 00 00 00 03 00 02 00 |................| | |
000002d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000002e0 11 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 |................| | |
000002f0 00 00 00 00 00 00 00 00 1d 00 00 00 00 00 f1 ff |................| | |
00000300 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000310 2d 00 00 00 10 00 02 00 00 00 00 00 00 00 00 00 |-...............| | |
00000320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000330 00 68 65 6c 6c 6f 5f 77 6f 72 6c 64 2e 61 73 6d |.hello_world.asm| | |
00000340 00 68 65 6c 6c 6f 5f 77 6f 72 6c 64 00 68 65 6c |.hello_world.hel| | |
00000350 6c 6f 5f 77 6f 72 6c 64 5f 6c 65 6e 00 5f 73 74 |lo_world_len._st| | |
00000360 61 72 74 00 00 00 00 00 00 00 00 00 00 00 00 00 |art.............| | |
00000370 0c 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 |................| | |
00000380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000390 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 | |
Class: ELF64 | |
Data: 2's complement, little endian | |
Version: 1 (current) | |
OS/ABI: UNIX - System V | |
ABI Version: 0 | |
Type: EXEC (Executable file) | |
Machine: Advanced Micro Devices X86-64 | |
Version: 0x1 | |
Entry point address: 0x4000b0 | |
Start of program headers: 64 (bytes into file) | |
Start of section headers: 272 (bytes into file) | |
Flags: 0x0 | |
Size of this header: 64 (bytes) | |
Size of program headers: 56 (bytes) | |
Number of program headers: 2 | |
Size of section headers: 64 (bytes) | |
Number of section headers: 6 | |
Section header string table index: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 | |
Class: ELF64 | |
Data: 2's complement, little endian | |
Version: 1 (current) | |
OS/ABI: UNIX - System V | |
ABI Version: 0 | |
Type: REL (Relocatable file) | |
Machine: Advanced Micro Devices X86-64 | |
Version: 0x1 | |
Entry point address: 0x0 | |
Start of program headers: 0 (bytes into file) | |
Start of section headers: 64 (bytes into file) | |
Flags: 0x0 | |
Size of this header: 64 (bytes) | |
Size of program headers: 0 (bytes) | |
Number of program headers: 0 | |
Size of section headers: 64 (bytes) | |
Number of section headers: 7 | |
Section header string table index: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment