From Middle English heicok, equivalent to hay + cock (“a shock or pile of grain”).
hay-cock (plural hay-cocks)