Added a linker scripts, instead of using gcc directly.

This commit is contained in:
RoyR
2026-03-16 11:47:38 -04:00
parent 01cb40babc
commit 8a60ebbfbf
4 changed files with 16 additions and 4 deletions

11
commonl Executable file
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