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 in instead of symbol names in many places. This occurs for unnamed section symbols.
It was not noticed because for most cases I've found it is unexpected to have an
unnamed section symbol. This patch documents the existent behavior, adds tests and FIXMEs.
These FIXMEs are fixed in D87764.
I think it would be slightly more obvious to use Name: [[NAME=bar]] and then just set -DNAME='', if that's possible?