Gable Flashing Question

Newbie to the forum here and could use some help on an issue I’m having with a shop I’m building. I can’t seem to figure out how best to keep water from getting behind the siding at the gable end/gable drip edge. See pics. Thoughts?

Diverter flashing is what you need,