This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Synthetic symbol leak in in elf_x86_64_get_synthetic_symtab and elf_read_minimal_symbols
On 17-08-11 08:30:21, H.J. Lu wrote:
> >
> > We can only safely do this, but .name is leaked for x86_64. Other
> > tools using bfd, like objdump, nm, and gprof may have this issue too.
> > I'll ask binutils people on asymbol allocation and de-allocation.
> >
>
> This is:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=21943
>
I opened it :)
> i386 and x86-64 get_synthetic_symtab don't know if @plt should
> be added to symbol name for a PLT entry. The first pass checks
> if @plt is needed and extra space is allocated in the second pass.
> We can assume @plt is needed and waste some space if it isn't.
Do you plan to fix it?
--
Yao (齐尧)