Where does “pals” come from?

Words derived from “pals