2009-11-13 Maciej W. Rozycki <macro@codesourcery.com>

* elfread.c (elf_symtab_read): Only mark a minimal symbol as
	special if it actually exists.  Merge the checks for this
	conditions.
This commit is contained in:
Daniel Jacobowitz 2009-11-13 22:47:13 +00:00
parent 3a29589aa2
commit a103a963e0
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
* elfread.c (elf_symtab_read): Only mark a minimal symbol as
special if it actually exists. Merge the checks for this
conditions.
2009-11-13 Kazu Hirata <kazu@codesourcery.com>
Maxim Kuvyrkov <maxim@codesourcery.com>

View file

@ -531,10 +531,10 @@ elf_symtab_read (struct objfile *objfile, int type,
if (elf_sym)
MSYMBOL_SIZE(msym) = elf_sym->internal_elf_sym.st_size;
msym->filename = filesymname;
gdbarch_elf_make_msymbol_special (gdbarch, sym, msym);
}
if (msym != NULL)
msym->filename = filesymname;
gdbarch_elf_make_msymbol_special (gdbarch, sym, msym);
/* For @plt symbols, also record a trampoline to the
destination symbol. The @plt symbol will be used in