D73518 mentioned non-STT_SECTION symbol names. This patch extends the code to
handle STT_SECTION symbols, where we report the section name.
This change helps at least the following cases with very little code.
- Whether a out-of-range relocation is due to code or data.
- For a relocation in .debug_info, which referenced .debug_* section (due to DWARF32 limitation) causes the problem.
One small suggestion, could use `"; references section " as that makes the +0 form a bit less surprising. I guess for cases like .text, .data etc. it will be obvious that it is a section symbol, but for some user defined names it might be less obvious.