This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: relaxing and elf local syms
On Wed, Feb 15, 2006 at 10:47:13PM -0500, DJ Delorie wrote:
>
> > elf_tdata (input_bfd)->symtab_hdr.contents can be used to save modified
> > internal syms for input_bfd.
>
> I did that. Many times. It gets ignored, it seems.
>
> Or... "I'm doing something wrong".
>
> If you look in bfd_elf_get_elf_syms, it doesn't check to see if the
> syms are already loaded. Yet, everyone seems to use that function to
> load syms.
No, but see elflink.c:6796. elf_link_input_bfd uses the cached copy
instead of calling bfd_elf_get_elf_syms. Perhaps some other places need
similar code?
--
Alan Modra
IBM OzLabs - Linux Technology Centre