For -buildmode=shared on linux/386, @mwhudson's current set of patches would borrow the CX register. This seems reasonable to me, but means that assembly that works under -buildmode=exe will not work under -buildmode=shared (see the discussion on http://golang.org/cl/16385).
Should we have a builder that runs the standard library tests compiled with -buildmode=shared? What about c-shared and c-archive?
More automated testing of this sort of thing would definitely be a good thing. You can't just run "go test -buildmode=shared std" though because -buildmode=shared doesn't make an executable. I guess it would make sense to build a minimal libruntime.so and run tests for all std library things apart from runtime (you can't really say go test -linkshared foo when foo is built into a shared library).
For -buildmode=shared on linux/386, @mwhudson's current set of patches would borrow the CX register. This seems reasonable to me, but means that assembly that works under -buildmode=exe will not work under -buildmode=shared (see the discussion on http://golang.org/cl/16385).
Should we have a builder that runs the standard library tests compiled with -buildmode=shared? What about c-shared and c-archive?
cc @ianlancetaylor @bradfitz
The text was updated successfully, but these errors were encountered: