From 04dc09cbf332dba9bde99026840eb4f9ba2d12bb Mon Sep 17 00:00:00 2001 From: blenk92 <30472652+blenk92@users.noreply.github.com> Date: Thu, 27 Dec 2018 00:44:10 +0100 Subject: [PATCH] Fix missing exported symbols in ELF ##bin --- libr/bin/format/elf/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/bin/format/elf/elf.c b/libr/bin/format/elf/elf.c index 8894d03279..44a040bc12 100644 --- a/libr/bin/format/elf/elf.c +++ b/libr/bin/format/elf/elf.c @@ -2962,7 +2962,7 @@ static int Elf_(fix_symbols)(ELFOBJ *bin, int nsym, int type, RBinElfSymbol **sy while (!p->last) { if (p->offset && d->offset == p->offset) { p->in_shdr = true; - if (*p->name && strcmp (d->name, p->name)) { + if (*p->name && *d->name && (r_str_startswith (d->name, p->name) || r_str_startswith (d->name, "$"))) { strcpy (d->name, p->name); } }