Minux Ma
Minux Ma
spadj is mostly done. Still TODO: handle pre/post-add instructions involving SP, see discussion on rev e90278a. Note: we don't need to bother an instruction that modifies SP if we can...
so the correct arm64 syscall numbers are specified in: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h?id=refs/heads/master right?
We need to fix this sooner as we've reached a stage we can actually use syscall. for example, gofmt < cmd/go/build.go works, but gofmt cmd/go/build.go reports "invalid argument". Strace showed...
still need to fix Lstat. cmd/go is failing on that one.
Also Mkdir, Unlink, Rmdir, Chmod. I've fixed the first three and Lstat, and cmd/go works. But I can still observe failed Chmod syscalls issued by cmd/go.
Basically, we must fix each of the syscall listed here: https://github.com/4ad/go/blob/dev.arm64/src/syscall/syscall_linux_arm64.go#L98
although this is pretty low-priority, I have to fix this to get go/build test passing.
we can't generate one binary for tests in multiple packages because there is no guarantee that package A's test doesn't interfere with package B's use of package A.
how could the user know that one can't test package A and package B together? consider "go test -c ./...", which could easily contain hundreds of packages.
Even if they could know the bad interaction between A & B (it's not that easy because given that B's tests failed, you still don't know which of B's dependent...