Actually Portable Executables · Blog Needs a Name
Blog Needs a Name Actually Portable Executables 27 Feb 2021 I came across Cosmopolitan on Hacker News, and I was initially confused, due to a few memories of cross-compilation nightmares: while it should be possible to compile for the same architecture regardless of operating system, wouldn’t the OS get confused by the leading bytes of the executable? I read the article explaining how it works, but most of it went over my head. The example on the Github README used the following script for compilation: gcc -g -O -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \ -o hello.com.db...