Where does “flag” come from?

Words derived from “flag