I took a look at your blend. I selected the flag, held SHIFT and selected the pole >> CTRL-J, joined the objects to one mesh. Went to weight paint and it was connected fine. I tried selecting in reverse order with no problems. Maybe you werenโt shift selecting the second object?