cmd/internal/obj is already imported by the compiler, linker, assemblers, etc., so it is a convenient place to put shared helpers, such as Bool2int, SortSlice, and PathToPrefix, even though they don't really belong there. It might be time to do a bit of cleanup.
cc @tzneal @mdempsky