This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/RFC] try ignoring bad PLT entries in ELF symbol tables
On Fri, 21 Oct 2011 19:29:58 +0200, Joel Brobecker wrote:
> > Do you have some such file with undefinde symbol and non-zero value?
>
> Do you mean, other than on ia64-hpux?
You suggest the non-zero values are really random while I thought there could
be some coincidence what the value means. But it is true you would figure it
out yourself so we have to consider it as a random value.
> > > + if (strncmp (sect->name, ".plt", 4) != 0
> > > + && bfd_get_section_by_name (abfd, ".plt") != NULL)
> >
> > At least the bfd_get_section_by_name result should be cached.
>
> I didn't think it was going to make much of a difference,
OK, I agree it is better this way as the conditional is evaluated only for
very few ELF symbols, not for all ELF symbols.
Thanks,
Jan