Resinous polyester foaming wood adhesive would work great on that (This is NOT PVA, which is no good for this)
Short of that .. Gripfill (Builders merchants) is best.
No Nails Ultra for Exterior/Wet situations. Check the label carefully as there are several sorts & only this one will cope with low/high temperatures & wet places.