[PATCH 5.4 012/320] tools/nolibc: fix incorrect truncation of exit code