At high enough angles of elevation, a 5-inch gun can be fired as it were a mortar. The fire control computers can handle reverse-slope fire. (Worst case, the chief can crank in some ACTH.)
Sorry -
ACTH = Arbitrary Correction To Hit
Also known as a ‘fudge factor’.