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

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 -no-pie") != 0) {
if (run_command("./commonl /tmp/test.o -o /tmp/test 2>/tmp/test.err") != 0) {
printf("FAIL (linker error)\n");
test_failed++;
return;