We have an issue with ELFDumper<ELFT>::getSymbolSectionName:
- It is used deeply for both LLVM/GNU styles and might return LLVM-style only values to describe symbols: "Undefined", "Processor Specific", "Absolute", etc.
- getSymbolSectionName is used by getFullSymbolName and these special values might appear instead of symbol names in many places. This occurs for unnamed section symbols currently.
This patch extracts the LLVM specific logic to LLVMStyle<ELFT>::printSymbolSection,
which seems to be the only place where we want to print the special values mentioned.
Depends on D87763
I'm thinking the warning/<?> output would probably make sense for undefined STT_SECTION symbols too. Those shouldn't really be a thing after all.