Patching GCC to build Actually Portable Executables
Gautham's Blog
Stay updated with breaking news from Actually Portable. Get real-time updates on events, politics, business, and more. Visit us for reliable news and exclusive interviews.
Gautham's Blog
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...