Re: [rfc, v2] Fix ELF synthetic symbol size bug (affects PPC64)

Daniel Jacobowitz
2007-11-06T21:44:09Z

On Tue, Nov 06, 2007 at 10:33:04PM +0100, Ulrich Weigand wrote:
> Alan suggested a way to pass that information: have the udata.p
> member of the synthetic symbol point back to the full ELF symbol
> structure of the original symbol used to derive the synthetic
> symbol from. The patch below implements this.
>
> Tested (GDB) on powerpc64-linux, fixes another 12 FAILs on top
> of the ones already fixed by the original patch.
>
> Is the bfd part OK?

The elf.c part of this does not make sense to me. Why should we have
the same size as that symbol? The @plt entry is only a couple of
instructions. To figure out its size you need to ask the backend
plt_sym_val routine.

--
Daniel Jacobowitz
CodeSourcery