Never though of using rivets for this repair.
Some of my screws pulled loose on the front end of the rail on our trailer, the dealer tightened them up and added a couple of extras. I'm planning on removing them all and putting proflex sealer in the holes and re-installing the screws this spring.
McMaster-Carr has the rivets:
https://www.mcmaster.com/tri-fold-rivets
Gary