If you’re flashing a masonry chimney, nail the flashing to the roof as far up the flashing ... leaving a 1-in. flap to bend around the front of the dormer. Nail along its upper edge.