This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Final symbol value adjustment
> > I couldn't find in the code place where symbol values adjusted after merging
> input sections into output section and where these adjusted values are written
> in the final symbol table. Could you please point me these places in the code?
>
> For ELF global syms, elflink.c:elf_link_output_extsym. ELF local syms
> are output starting in elflink.c:bfd_elf_final_link and then in
> elf_link_input_bfd. Look for elf_link_output_sym.
>
In the linker I built _bfd_generic functions are called from linker.c file
(correct ELF file is generated, though).
Did I miss something in configuration?
In the linker I built _bfd_generic_link_output_symbols function is called
before from _bfd_input sections merged into output section. That's why I asked when
final symbol value adjustment is done.
Thanks,
Oleg