Added the -no-pie option for linking

This commit is contained in:
RoyR
2026-03-14 15:43:11 -04:00
parent a0175024f3
commit 01cb40babc
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ static void run_test(Test *t) {
}
/* Link */
if (run_command("gcc -m32 /tmp/test.o -o /tmp/test 2>/tmp/test.err") != 0) {
if (run_command("gcc -m32 /tmp/test.o -o /tmp/test 2>/tmp/test.err -no-pie") != 0) {
printf("FAIL (linker error)\n");
test_failed++;
return;