This makes the interface cleaner and slightly improves messages
reported.
I need it for another patch that is going to reuse
virtual print*Reloc methods for printing dynamic relocations.
(in that case the const Elf_Shdr *Sec argument introduced
instead of unsigned SecIndex will be nullptr).