assembly - How to make an executable ELF file in Linux using a hex editor? -


Just curious this is not a very good solution for obvious programming, but says I'm Blesse Editor) wanted to make executable.

What is my architecture x86 is a very simple program I can do? Hello world? An infinite loop? Similar to the question, but in linux.

As stated in my comment, you will essentially write your own eligibility for executable -The header is destroying unnecessary sections. There are still many essential classes to explain this process in the documentation. For fun, here are some examples:

equal to / bin / true (45 bytes):

  00000000 7F 45 4c 46 01 00 00 00 00 00 00 00 00 00 24 25. Aleph .......... I% 00000010 02 00 03 00 1 A 0049 25 1a 0049 25 04 00 00 00. ...... I% .. I% .... | 00000020 5BFF2AE 40 225FFB CD 8020 00 01 | [_ .. _ "... ... .. 0000002d   

Your classic 'Hello World!' (160 bytes):

  00000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 | Elf ........... | 00000010 02 00 03 00 01 00 00 00 74 80 04 08 34 00 00 00 ............ T ... 4 ... 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 28 00 | ........ 4 ... ... (00000030 00 00 00 00 00 00 00 74 00 00 00 74 80 04 08 | ........ T. .. T ... 00000040 74 80 04 08 1F 00 00 00 1F 00 00 00 05 00 00 00 | T ............... 00000050 00 10 00 00 01 00 00 00 93 00 00 00 93 9 04 04 08 | ................ | 00000060 93 90 04 08 07 00 00 00 00 00 00 00 00 00 00. .... .............. 00000070 00 10 00 00 B8 04 00 00 00 BB 01 00 00 00 B 9 93 ................ | 00000080 90 04 08 BA 0D 00 00 00 CD 80 B8 01 00 00 00 31 | ............... 1 | 00000090 DB CD 80 48 65 6C6C6F 20 77 6F 72 6C 64 21 A | ..Hello World !. 000000a0   

Do not forget to make them executable ...

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -