Added a linker scripts, instead of using gcc directly.

This commit is contained in:
RoyR committed 2026-03-16 11:47:38 -04:00
1 parent 01cb40babc
commit 8a60ebbfbf
4 files changed
+16 -4

No files matched your search

Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Public domain / CC0. Use freely for any purpose. RoyR 2026
GCC_NO_PIE=1
echo 'int main() {}' | gcc -E -no-pie - -o /dev/null || GCC_NO_PIE=0
if [ $GCC_NO_PIE = 1 ];then
gcc -m32 -no-pie "$@"
else
gcc -m32 "$@"
fi