[PATCH 3/3] tools/nolibc: fix incorrect truncation of exit code