Add note on why symbols with empty names are skipped
@@ -61,6 +61,8 @@ pub fn parse(elf: &[u8]) -> Result<Option<Table>, anyhow::Error> {
// second pass to demangle symbols
let mut map = BTreeMap::new();
for (_, entry) in elf.symbols() {
+ // Skipping symbols with empty string names, as they may be added by
+ // `objcopy`, and breaks JSON demangling
let name = match entry.name() {
Some(name) if !name.is_empty() => name,
_ => continue,
