Cork have maintained their Division Two status at Offaly’s expense after edging a tense relegation battle in Tullamore.
The result means that Offaly drop to Division Three and there will be no place for them in the qualifiers this year, unless they reach the Leinster final.
Having led by six points early in the second half, Cork were reeled in by the home side, who led by two points with five minutes remaining.