Shares of state-owned shipbuilding companies Cochin Shipyard and Mazagon Dock Shipbuilders (MDL) rallied up to 8 per cent, hitting multi-year highs in an otherwise subdued market on expectation of strong earnings for the September quarter (Q2FY23).