Producing the executable

Save the file as o_lin.asm and compile it into an object file with the fasm o_lin.asm command in the terminal. The next step will be linking o_lin.o with crypto_32.o with the following command:

gcc -o o_lin o_lin.o crypto_32.o
# If you are on a 64-bit system then
gcc -o o_lin o_lin.o crypto_32.o -m32

This will result in a 5KB o_lin executable --quite a heavy one in relation to the size of code we used to produce. Such a huge size is due to the GCC linking C runtime into it. Try to run it and you should see this in the terminal:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset