diff --git a/scripts/compile.pl b/scripts/compile.pl index 79afbda..6681e2b 100644 --- a/scripts/compile.pl +++ b/scripts/compile.pl @@ -192,6 +192,7 @@ sub build { compile_c_module( $module, $bd, $target ); compile_c_host( $module, $bd, $target ); compile_startup( $module, $bd, $target ); + compile_syscalls( $module, $bd, $target ); link_c( $module, $bd, $target ); } else { @@ -463,11 +464,12 @@ sub link_c { Util::module_is_tacle($module) ? glob("$bd/tacle_*.o") : (); if ( $target eq 'fail' ) { Util::run( - $cross_cc, '-Wl,-T', - 'targets/linker.ld', "$bd/c_host.o", - "$bd/startup.o", "$bd/c_module.o", - @tacle_objs, @cross_ldflags_nowasm, - '-o', "$bd/system.elf" + $cross_cc, '-Wl,-T', + 'targets/linker.ld', "$bd/c_host.o", + "$bd/startup.o", "$bd/syscalls.o", + "$bd/c_module.o", @tacle_objs, + @cross_ldflags_nowasm, '-o', + "$bd/system.elf" ); } elsif ( $target eq 'linux' ) {