This is washing machine's agitator axle and a gear from transmission. The weld that connected them both had failed.
As one example, I have a tap and die set and was thinking that I could drill a hole in the axle and gear. Put a bolt. And then file the bolt's head smooth? Though, I am wondering what could happen in the worst case if bolt fails (e.g. stall motor, cause belt to fail)? Any other ideas?