Get the Whitepaper called How To Create Your Own Shellcode On Arch Linux.
You can download it from the following link: https://packetstormsecurity.com/files/download/103297/own-shellcode.pdf
Source: https://packetstormsecurity.com/files/103297/How-To-Create-Your-Own-Shellcode-On-Arch-Linux.html