Which preposition to use with yardarm

of Occurrences 1%

In this he succeeds, but being seized as a spy, is commanded by colonel Howard to be hung to the yardarm of an American frigate called the Alacrity.

on Occurrences 1%

KEDRON, a wady E. of Jerusalem, traversed by a brook in the rainy season, and which runs in the direction of the Dead Sea. KEELHAULING, a naval punishment of the 17th and 18th centuries; consisted in dropping the victim into the sea from one yardarm, hauling him under the keel and up to the yardarm on the other side; is now a term for a severe rebuke.

Which preposition to use with  yardarm