Fix #7573 - override shdr with phdr symbols (#7612)

Those whose offset are 0 are skipped to avoid overlapping
This commit is contained in:
Álvaro Felipe Melchor 2017-05-28 23:10:35 +02:00 committed by radare
parent ba6dce4d73
commit 64c11b5de8

View File

@ -2638,7 +2638,7 @@ static int Elf_(fix_symbols)(ELFOBJ *bin, int nsym, int type, RBinElfSymbol **sy
/* find match in phdr */
p = phdr_symbols;
while (!p->last) {
if (d->offset == p->offset) {
if (p->offset && d->offset == p->offset) {
p->in_shdr = true;
if (*p->name && strcmp (d->name, p->name)) {
strcpy (d->name, p->name);